meta-template
meta-template copied to clipboard
:sparkles: Automagically convert Nunjucks templates into a variety of other formats!
I added custom tags to use in nunjucks templates, how can I add them to those recognized by the parser ?
Implemented the for-else formatting as well.
Hi Shawn, I fixed the "else if" behaviour and updated the tests for them. Not an elegant solution, but at least it works. Also worth to mention that handlebars 3.0+...
React support would be really interesting. I'm not sure what the JSX AST looks like, but with a little clever pattern matching I think this could be doable. Here are...
In [Nunjucks](http://mozilla.github.io/nunjucks/templating.html#macro) and [Jinja](http://jinja.pocoo.org/docs/2.9/templates/#macros), the `macro` tag is the closest we can get to functional programming with templates, and is a much clearer and succinct way of handling defaults than...
I think it'd be really cool if meta-template could batch-convert a collection or "suite" of templates into a supported format, and use knowledge of templates' inter-relationships to convert them in...
The trick will be getting this to work with the new integration tests, since services like Travis and Circle can be tricky to get working with multiple language environments.
The simplest thing here would probably be to have a script that runs a standard set of converted templates (the feature lower common denominator) through a reference implementation of the...
It might be worth considering a one-time conversion from the Nunjucks AST to [unist](https://github.com/syntax-tree/unist) so that it would be easier to write [utilities](https://github.com/syntax-tree/unist#list-of-utilities) for modifying them.
It should be possible to generate a matrix of support for specific features from a set of Nunjucks template snippets. For instance, these roughly map to the more common AST...