abi-code-gen icon indicating copy to clipboard operation
abi-code-gen copied to clipboard

Use template-literal instead of EJS

Open Drulac opened this issue 8 years ago • 5 comments

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 😀

Drulac avatar Jan 07 '18 22:01 Drulac

Ill have a look at your project @Drulac ;) Thanks!

juanfranblanco avatar Jan 08 '18 10:01 juanfranblanco

Also, the concept is portable for c#

juanfranblanco avatar Jan 08 '18 10:01 juanfranblanco

For .NET C#, there is also https://github.com/rexm/Handlebars.Net

StefH avatar Jan 08 '18 12:01 StefH

I have used RazorLight https://github.com/Nethereum/Nethereum/blob/master/src/Nethereum.Generator.Console/Nethereum.Generator.Console.csproj#L20

Note I need to push the upgraded version Edit: I pushed that now ;)

juanfranblanco avatar Jan 08 '18 12:01 juanfranblanco

you're welcome :-)

Drulac avatar Jan 08 '18 18:01 Drulac