postrank-labs / goliath

Goliath is a non-blocking Ruby web server framework
Other
2.44k stars 217 forks source link

templates stopped working / issues with 1.0.4 #238

Open davidatjoystick opened 11 years ago

davidatjoystick commented 11 years ago

Not sure exactly which version i started to get issue - but my code works well when i use Goliath v.0.9.4 and when I upgraded my Goliath to v1.0.4 it doesn't render the template anymore.

This is my code which works on 0.9.4:

include Goliath::Rack::Templates # render templated files from ./views def response(env) case env['PATH_INFO'] when '/admin' then [200, {}, haml('admin/dashboard')] end end

When i go to the page it just prints out "admin/dashboard".

Any idea what changes had occurred after 0.9.4?

davidatjoystick commented 11 years ago

wondering if anyone else experience the same issue with the latest Goliath or just me?

igrigorik commented 11 years ago

Can you put up a gist reproducing the problem?