Embedding icons into markup

This commit is contained in:
Jeff Avallone committed 2016-07-27 11:12:56 -04:00
1 parent e7aa0bb533
commit 5f9a8ddfc1
15 files changed
+49 -28

No files matched your search

+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>`);
});
};