biofriction-wp-theme/node_modules/motion-ui/lib/handlebars.js

9 lines
232 B
JavaScript

var handlebars = require('handlebars');
handlebars.registerHelper('private', function(item, content) {
if (item.access === 'public') return content.fn(this);
else return content.inverse(this);
});
module.exports = handlebars;