How would one use erb for one page on an otherwise HAML/SASS based nesta
site? I am not interested in converting it to HAML and SASS right now.
I've attempted to sneaking it through HAML with a filter which doesn't
work because the layout.haml file is still used.
I've tried:
get "/resume/?" do
require 'erb'
erb :resume # I also tried "cache erb(:resume)" which generates
the same error
end
Which results in this path related error:
sinatra.error
#<Errno::ENOENT: No such file or directory -
/Library/Ruby/Gems/1.8/gems/nesta-0.9.1/views/resume.erb>
How would I go about telling Sinatra where to look when serving this one page?
Thanks,
Aaron
On 31 Jul 2011, at 00:15, Aaron Stroud <astroud@gmail.com> wrote: > sinatra.error > #<Errno::ENOENT: No such file or directory - /Library/Ruby/Gems/1.8/gems/nesta-0.9.1/views/resume.erb> > > How would I go about telling Sinatra where to look when serving this one page? Did you put resume.erb in ./views? Given your code snippet for handling /resume, it's a view. I'd convert it automatically with html2haml and put it in content/pages.