Reloading of Inline templates is not working #18

Closed
grpala opened this Issue Oct 12, 2011 · 2 comments

Comments

Projects
None yet
2 participants
@grpala

grpala commented Oct 12, 2011

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....

@ghost ghost assigned gnandretta Oct 13, 2011

@gnandretta

This comment has been minimized.

Show comment
Hide comment
@gnandretta

gnandretta Oct 14, 2011

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!

Member

gnandretta commented Oct 14, 2011

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

This comment has been minimized.

Show comment
Hide comment
@grpala

grpala Oct 14, 2011

Good job, keep it up! :D

grpala commented Oct 14, 2011

Good job, keep it up! :D

zzak pushed a commit to zzak/sinatra-contrib that referenced this issue Jul 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment