re: A JavaScript-Free Frontend VIEW POST

re: Hello, I have looked at an invoice page code source. And I have a question : it appears you have a script tag with a JSON description of the invoic...

The server renders the HTML page and inserts some simple JSON so that Mithril can pick up on the data and populate the drag-and-drop UI. When the invoice is sent or otherwise not editable, the server skips the JSON and Mithril is not used, so the server just renders the full HTML for the line items.

code of conduct - report abuse