How to create a page using Sinatra which will use my prepared index.html.haml template.
Let’s say i have following code:
require 'sinatra'
require 'sass'
require 'haml'
get '/' do
haml :index ???
end
my index.html.haml file is located in /sinatraapp/haml/index.html.haml
You need to tell
sinatrawhere your views are located – see this