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

9 lines
232 B
JavaScript
Raw Permalink Normal View History

2021-10-26 14:18:09 +02:00
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;