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

Respect Template Options in Before Blocks #74

Merged
merged 2 commits into from Jan 16, 2013

Conversation

whitehat101
Copy link
Contributor

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.

winton added a commit that referenced this pull request Jan 16, 2013
Respect Template Options in Before Blocks
@winton winton merged commit 6036d73 into winton:master Jan 16, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants