- Supports script and output tags. (<%, <%-, <%=)
- Supports calling external functions.
How to use?
use Dojang; use Value; // Create a template engine Dojang. let mut dojang = new; // Load template file under '/my/template/files' assert!; // Render a template. "some_template" is the one of the template file under /my/template/files. // Note that the context should be provided as a serde_json value. assert_eq!; assert_eq!;
Features coming soon.
- Support for file includes (<%- .. >)