template-literal
template-literal copied to clipboard
fastest, smallest and simplest template engine, using JS's literal template feature
Is there a way to loop and include ? `like ${d.array.forEach((v,i) => include('brands', v)} beers.`
This allows to call this type of functions: `${await d.myAsyncFunction()}`
Is the template language limited to only one liners? Are includes, layouts and components supported?
as template literals weren't added until node v4, package.json should indicate that this is a minimum version (or another version, if newer features were also used) source: http://node.green/
to support display on npmjs, as well as tools validating library licenses, the license in package.json should be changed from `UNLICENSED` (it looks like GPLv3 is included in the repository)
I'm using vim. Is there a syntax highlight for `.tl` files that works with HTML and embedded js expressions `${}`?