Nginx Office Hours: A module to make your sites available only during a schedule
gitlab.com1 pointsby benbeltran0 comments
tm = _.template(string);
tm(context);
to tm = new Thulium({template : string}).parseSync().renderSync(context);
It's different in that you do the initialization, parsing and rendering in different steps. TBH, with smallish templates, I found Thulium to be about 10µs faster. Which in most cases, is negligible. So if you're already using underscore, you probably shouldn't change everything. But if you need extra features like wrapping the output of a function in form tags or something like that, you can do it really easily with thulium. (Porting some of our helpers from EJS to Thulium meant a reduction of many lines of code and complexity.)