postrank-labs / goliath

Goliath is a non-blocking Ruby web server framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

templates stopped working / issues with 1.0.4

davidatjoystick opened this issue · comments

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?

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

Can you put up a gist reproducing the problem?