Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- handlebars : {
- cache: [],
- render : function (name, template, content, context, callback) {
- try {
- if (!cache[name]) {
- cache[name] = Handlebars.compile(template);
- }
- callback(cache[name](content, context));
- } catch (e) {
- // console.log('Could not render. Handlebars might not be installed');
- }
- }
- }
Add Comment
Please, Sign In to add comment