#3443·pug

Client render... again ...

Author: tvortsaCreated Jul 27, 2024Updated Oct 9, 2025

can someone explain to me how to use the pag compiler on the client!? i have this one pipeline:

  1. The server is contacted
  2. The server reads the pag file and compiles it into a JS string
  3. The server gives the client this string from p. 2.
  4. The client extracts the pag-js string from the server's response and executes it (HOW!?!?!?!?)

The code in the documentation explains how it works but does not explain WHERE to get this damn pag runtime and if I don't have a node but a deno, for example?

Is it really so hard to make a normal JS module in a normal CDN and not demand that people 'require' in 24th year!?