Skip to content

Loading…

Reloading of Inline templates is not working #18

Closed
grpala opened this Issue · 2 comments

2 participants

@grpala

The title says it all. The minimal code for trying it out is here: http://paste.pocoo.org/show/491320

Update: Seems it's all a matter of set(:inline_templates, file) being triggered when requiring sinatra before the hooks are in place. Requiring sinatra/reloader (which requires sinatra/base) before requiring sinatra solves the issue, however I wonder if it should be that way....

@gnandretta gnandretta was assigned
@gnandretta
Sinatra member

Adding

enable :inline_templates

should do the trick, see https://gist.github.com/1286019.

But it has been fixed in master, so if you run against it, your example should work.

Thanks!

@grpala

Good job, keep it up! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.