Created
June 23, 2011 13:57
-
-
Save WaYdotNET/1042577 to your computer and use it in GitHub Desktop.
how to render markdown page with haml template into Padrino ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get :staff do | |
# render :markdown, :staff | |
render :markdown, :staff , :layout_engine => :haml, :layout => :application | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app/views/layout/application.html.haml | |
app/views/layout/contact.html.haml | |
app/views/layout/staff.html.markdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
erro: | |
Errno::ENOENT at /staff | |
store/app/views/layouts/application.haml | |
if i duplicate layout form application.html.haml to applicaiton.haml work..... solution ? |
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
Try