jingoo
jingoo copied to clipboard
OCaml template engine almost compatible with jinja2
It should be possible to make a PPX that generates a function that maps an instance of some type "t" into the typed jingoo model representation. For projects with complex...
https://github.com/tategakibunko/jingoo/commit/f0432b5cc10cc32fdd9916c77a897130fd58ea7c introduce a lot of new frames, when previous behavior only added values to current scope. I do not know if a proper fix exists (or if it is needed),...
This is a regression introduced by https://github.com/tategakibunko/jingoo/commit/8d1073cbc881933192821b31991ef0607dfa4bbb Because `default` might be a token, it is returned as a token whenever you are in a `Logic` lexer_mode. ``` {% set pg...
The constructor is called `Tset`, but a set is a collection of unique items. Tset is definitely more considered as a tuple rather than a set. So we probably should...
Here is a proposal: Have a special `tests` collection in `context` or `environment`. In the case of a `is` test, we could look at this collection first, and look for...
In Jinja, it is possible to pass data to template via some function calls. May I know if similar thing can be done in Jingoo? Thanks in advance!