sakuraapi / cli

Command Line Interface for Scaffolding and Managing SakuraAPI Projects
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Use template-literal instead of EJS #7

Closed Drulac closed 6 years ago

Drulac commented 6 years ago

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 😀

etsuo commented 6 years ago

@Drulac, this is the first time I've gotten a direct solicitation to use a library by its author. lol - I'll have a look at what you've done when I get a chance next week.

I think long-term the right solution is to let the user choose which templating library he wants to use (I'm assuming you're talking about the template library being used for the email templates that are outputted, not the template engine that's being used internally. If it's the internal one, that's not going to change... it would make no noticeable difference to the cli user).

Thanks for the input!

Drulac commented 6 years ago

Yes, it may be a good idea to let the user to have the choice ☺