npm install xjst
It is still at an early stage of development. The easiest and ugly way to look at examples of this:
git clone git://github.com/veged/xjst.git make -C xjst tests make -C xjst tests/menu
More low-level details are available in
You can also use
bin/xjst to compile
*.xjst to CommonJS module.
Some technical details (in Russian) can be found in doc/tech.ru.md.