Hacker News new | past | comments | ask | show | jobs | submit login

Sweet, I have been looking into Node for my Python SSR webapps, but Pug and Handlebars are just not cutting it. Jinja templating language is just soooo good.

This looks like what I wanted in a templating language




Try edge: https://edgejs.dev/

It is mature and feature rich. I like that the expressions can be plain js and it is not coupled with html.


We are using this as a standalone templating engine. It's easy, fast and has good error reporting. This is the main templating engine of AdonisJS.


Fwiw, you can use JSX without React.

Another project on the HN homepage at the moment happens to do this: https://www.val.town/v/maxm/staticChess

    const { renderToString } = require('react-dom/server')

    renderToString(<ul>{[1, 2, 3].map(n => <li>{n}</ul>)}</div>)
Granted, you have to configure it so that JSX is allowed in your JS. For example, by running your code as `tsx server.js`, but I find it so much better than Pug/Nunjucks of yore that it makes up for that downside.


There’s https://mozilla.github.io/nunjucks/ although it hasn’t been maintained for quite some time.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: