We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template Literal is fastest, smallest and simplest template engine, because it use JS's literal template feature.
It's 55 times faster than EJS, and it also use less CPU and RAM ressources, so it may be a good idea to use it instead of EJS 😀
The text was updated successfully, but these errors were encountered:
Hi @Drulac The template literal not support complex condition struct.
Sorry, something went wrong.
can you give me an example of complex condition struct please :-) ?
<% if (a) { %> balababala <% } %> <% for () { %> babaljbljafa <% } %>
and if else if, balabala
Oh it's easy to make it with template literal :-)
${(a) ? : 'blablabla' : '' } // or for more complex ${ (()=>{ if (a) { return 'balababala' } return '' //always return empty, to don't display null or undefined })()}
using array methods like map, sort, filter, ... you can replace easily loops, or you can still use a function to do that
No branches or pull requests
Template Literal is fastest, smallest and simplest template engine, because it use JS's literal template feature.
It's 55 times faster than EJS, and it also use less CPU and RAM ressources, so it may be a good idea to use it instead of EJS 😀
The text was updated successfully, but these errors were encountered: