Embedding icons into markup

This commit is contained in:
Jeff Avallone
2016-03-10 16:53:54 -05:00
parent e9a0def7d8
commit f68a410ac1
15 changed files with 49 additions and 28 deletions
+5
View File
@@ -0,0 +1,5 @@
module.exports.register = function(handlebars) {
handlebars.registerHelper('icon', function(selector, context) {
return new handlebars.SafeString(`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 8 8"><use xlink:href="${selector}" /></svg>`);
});
};