From ed87d40f71c2bbc7c187494852bc28c5db8c16c3 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 28 Mar 2014 18:59:10 -0400 Subject: [PATCH] helpers.buildMetaTag --- public/src/helpers.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/src/helpers.js b/public/src/helpers.js index 8eb79831b5..e273671782 100644 --- a/public/src/helpers.js +++ b/public/src/helpers.js @@ -9,6 +9,14 @@ return (config.isLoggedIn || !config.privateUserInfo); }; + helpers.buildMetaTag = function(tag) { + var name = tag.name ? 'name="' + tag.name + '" ' : '', + property = tag.property ? 'property="' + tag.property + '" ' : '', + content = tag.content ? 'content="' + tag.content + '" ' : ''; + + return ''; + }; + @@ -21,6 +29,7 @@ var templates = templates || require('./templates'); templates.registerHelper('displayUsersLink', helpers.displayUsersLink); + templates.registerHelper('buildMetaTag', helpers.buildMetaTag); }; })('undefined' === typeof module ? {