Ariejan de Vroom
Ariejan de Vroom
@jejacks0n something is wrong with travis here. I've merged this PR to my own fork and it works as expected. Running `rspec` or `rake` does not give any output, except...
Most notably, `NMI` is missing.
I don't think webby was built to run under passenger. It generates static HTML for direct serving by apache or whatever.
This is not intended behaviour. I've made a fix, you can pull it from http://github.com/cloudhead/toto/pull/58
Nice! But can it display a custom page instead?
Try this (I'm using HAML): ``` set :error do |code| ::Haml::Engine.new(File.read("templates/pages/#{code}.haml"), :layout => 'layout', :format => :html5, :ugly => true).render("templates/layout") end ```
@samnang - I don't use ERB, but it could be something like this: ``` ERB.new(File.read("templates/pages/layout.rhtml")).result(File.read("templates/pages/#{code}.rhtml")) ```