svg-sprite / svg-sprite

SVG sprites & stacks galore — A low-level Node.js module that takes a bunch of SVG files, optimizes them and bakes them into SVG sprites of several types along with suitable stylesheet resources (e.g. CSS, Sass, LESS, Stylus, etc.)

Home Page:https://github.com/svg-sprite/svg-sprite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding template helper with config-file?

badtant opened this issue · comments

Hi,

I'm using a json config that I run the cli with.
svg-sprite --config=svg/config.json 'svg/**/*.svg'

I want to add a custom helper to use in mustache templates but I cant figure out how to add them under variables?

For example how do I add a helper to my config that makes a string upperCase and is used like this?
{{#upperCase}}{{name}}{{/upperCase}}

I cant't find any example that helps me :)
Thanks