Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding template helper with config-file? #838

Open
badtant opened this issue Aug 9, 2023 · 0 comments
Open

Adding template helper with config-file? #838

badtant opened this issue Aug 9, 2023 · 0 comments

Comments

@badtant
Copy link

badtant commented Aug 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant