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

Add global helper #21

Open
Fauntleroy opened this issue Feb 26, 2014 · 0 comments
Open

Add global helper #21

Fauntleroy opened this issue Feb 26, 2014 · 0 comments

Comments

@Fauntleroy
Copy link
Contributor

We could probably use a helper to provide access to variables that are out of the current scope. Since we usually need to just access something at the top of the current context, a simple global helper would do the trick.

<img src="{{global "url.host"}}/images/banners/approach.jpg" />

Inspired by this SO issue: http://stackoverflow.com/questions/18856023/handlebars-js-global-contexts

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

No branches or pull requests

1 participant