Hi!
I just released Jax, a template compiler I wrote last year, to the DUB repository.
It takes an input file and generates a D source file which can then be imported as string mixin.
This is much faster than CTFE-based compiling.
We have been using it for a while to power all our websites in production with no known problems.
Features
- HTML compressor
- Parametrized macros
- Good and detailed error reporting
- Supports languages
- Can automatically re-compile known dependant files
- Token-based cache-busting mechanism
- Interpolation and translation tags will escape HTML by default
It's pretty similar to mustache with a couple of extra features added in.
It integrates well with vibe.d, requiring just a few lines of custom glue-code.
Check out the README.md for more details.
Check out the example subdirectory for a working app using vibe.d.
Please, feel free to share any thoughts you may have!
Cheers,
-M