Arbitrary site variables #78

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

Projects

None yet

2 participants

@louquillio

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

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

@louquillio

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