Dec
8
1 month ago
Activity icon
issue

Yehonatan-Albert issue comment benchpressjs/benchpressjs

Yehonatan-Albert
Yehonatan-Albert

Render template client-side

Is it possible? Before 1.9.x it was possible to render templates client-side if you have a template and data.

I'm looking into Becnhpress.js and I can not find how I could achieve the same.

You have to use loaders. Does it mean you have to implement templating yourself (templateFunction)?

Example: https://github.com/NicolasSiver/nodebb-plugin-ns-points/blob/5e4afdd715e34316f6982c2dcb9cf4414efc5b13/public/js/overview.js#L63

Yehonatan-Albert
Yehonatan-Albert

Yep, client-side compilation is not available.

Hi pitaj, Is there nothing like #{code...} of pug?