I have a simple sinatra application. All I want to do is use it as a wrapper to serve a static HTML file at a specific route. My directory structure looks like this:
This is work for me:
require 'rubygems' require 'sinatra' get '/index.html' do @page_title = 'Home' @page_id = 'index.html' erb :'index.html', { :layout => :'layout.html' } end