Hi
In sinatra's app,
require 'rubygems'
require 'sinatra'
require 'haml'
get '/new' do
haml :new
end
get '/edit' do
haml :edit
end
__END__
@@ layout
%html
%head
%title
%body
= yield
@@ _form
# partial form
@@ new
%h1 Add a new item
# require partial _form
@@ edit
%h1 Edit an existing item
# require partial _form
How to require the partial @@ _form
template in @@ new
and @@ edit
?
Thank you.