4 ms·
HTML with interpolation is not a good idea. You really should want a template engine that knows if the variable it's injecting goes into a tag as text or into
by jopsen 1y ago
HTML with interpolation is not a good idea.
You really should want a template engine that knows if the variable it's injecting goes into a tag as text or into an attribute, etc.
The problem with the webstack is that these things are easily hard, or comes to you by using an ORM, or DSLs in a generic language.
Personal I think that things like JSX or:
https://www.gomponents.com/ https://www.gomponents.com/
Aren't that bad, as they are basically modeling HTML.
JSX doesn't have to mean react, you could render server side into plain html.
- ndriscoll 1y agoInterpolation can be the API to a statically checked template engine. This is not uncommon in Scala. See e.g. my reply when this blog was posted the other day: https://news.ycombinator.com/item?id=45574339 https://news.ycombinator.com/item?id=45574339