The typical strategy is to design a language that compiles to Handlebars, e.g. http://emblemjs.com/.
It would be possible to support other languages more directly but they will tend to have a Handlebarsy flavor.
It would be possible to support other languages more directly but they will tend to have a Handlebarsy flavor.
The web frontend world is crazy to a backend engineer. We have hard problems to solve too, but ours usually arise from well-understood problems, such as CAP theorem.
Anyways, you can't think of a single analogue for the emblem->handlebars example?
The only analog I can think of is statically typed SQL, which is in fact awesome.