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

Arbitrary site variables #78

Open
louquillio opened this issue Jun 7, 2012 · 2 comments
Open

Arbitrary site variables #78

louquillio opened this issue Jun 7, 2012 · 2 comments

Comments

@louquillio
Copy link

In 0.5.3, is there a way to declare arbitrary template variables at site scope? Seems like there must be, but it's not obvious.

Example: Suppose there is a term (a string) that's used repeatedly across a site -- but it's known that the term may change in the future. If this term were the contents of a variable, it would be easy to change globally. Thanks for any help.

LQ

@hydrox24
Copy link

Surely the Jinja2 docs are the place to look for this info?

@louquillio
Copy link
Author

Hyde 0.5.3 and earlier use Django templates, which famously don't permit the declaration of arbitrary variables. Before I make an ugly hack in Hyde itself, I'm wondering if there's a more elegant solution.

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

2 participants