trvsdnn / frank

Static Site Non-Framework
http://github.com/blahed/frank
MIT License
415 stars 30 forks source link

Sitewide variables? #66

Closed casey-chow closed 12 years ago

casey-chow commented 12 years ago

I saw that Frank.exporting? can be used sitewide throughout all the layouts, etc.

Are there any plans to allow us to do similar sitewide variables? Is it already implemented?

trvsdnn commented 12 years ago

You can use meta data for template specific variables:

    foo: bar
    --------------------------META

    <%= foo %>

You can use helpers for methods that you want to use in all the templates/layouts. I am planning on restructuring this to make it cleaner and easier in the next release.