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

RablEngine to clear instance members of scope on render #400

Open
gautampunhani opened this issue Feb 7, 2013 · 0 comments
Open

RablEngine to clear instance members of scope on render #400

gautampunhani opened this issue Feb 7, 2013 · 0 comments

Comments

@gautampunhani
Copy link

Was using Rabl with Sinatra which uses template caching. The RablTemplates intitialise RablEngine objects which copies the instance members of scope object. So, if on second call none of my instance members on scope object are set, it will still use the instance members of my first call.

With each render call the instance members of engine can be cleared first and then set from the scope object.

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

1 participant