winton / stasis

Static sites made powerful
http://stasis.me
MIT License
677 stars 56 forks source link

Respect Template Options in Before Blocks #74

Closed whitehat101 closed 11 years ago

whitehat101 commented 11 years ago

I ran into a bug while trying to use compass. When calling render in a before block (Stasis::Render#render) configuration set with Stasis::Options.set_template_option was ignored. This patch merges options passed at the end of a call to render inside a before block with Stasis::Options.get_template_option -- I was inspired by Stasis#render

Please see issue #31's comments for some history.

I wrote two specs, they feel a little gross, but I don't know how else to test this behavior.