pugjs / pug

Pug – robust, elegant, feature rich template engine for Node.js
https://pugjs.org
21.7k stars 1.95k forks source link

Client render... again ... #3443

Open tvortsa opened 4 months ago

tvortsa commented 4 months ago

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!?