Sha256: 724f1f7a9e87ef8e6dea1f4623eb03ca1595065e356e45e93b03b665aa159465
Contents?: true
Size: 451 Bytes
Versions: 28
Compression:
Stored size: 451 Bytes
Contents
// This function will be needed in future when I can figure out how to cache templates. // function compile_template(template) { // return Handlebars.compile(template); // } // This is the main function that is called by the client. function process_template(template, data) { // The process template function may be improved with some type of caching const compiled_template = Handlebars.compile(template); return compiled_template(data); }
Version data entries
28 entries across 28 versions & 1 rubygems