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