Skip to content

Instantly share code, notes, and snippets.

@WaYdotNET
Created June 23, 2011 13:57
Show Gist options
  • Save WaYdotNET/1042577 to your computer and use it in GitHub Desktop.
Save WaYdotNET/1042577 to your computer and use it in GitHub Desktop.
how to render markdown page with haml template into Padrino ?
get :staff do
# render :markdown, :staff
render :markdown, :staff , :layout_engine => :haml, :layout => :application
end
app/views/layout/application.html.haml
app/views/layout/contact.html.haml
app/views/layout/staff.html.markdown
erro:
Errno::ENOENT at /staff
store/app/views/layouts/application.haml
if i duplicate layout form application.html.haml to applicaiton.haml work..... solution ?
@WaYdotNET
Copy link
Author

@DAddYE

first work well

second:
Errno::ENOENT at /staff
no succia il file :
tore/app/views/layouts/application.html.haml.haml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment