-
-
Save nesquena/1d36a35794dbbd664ea4 to your computer and use it in GitHub Desktop.
Example of how to register rendering module explicitly
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/app.rb | |
class Demo < Padrino::Application | |
register Padrino::Rendering # <= Add this line | |
# ... | |
register Padrino::Helper | |
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
# config/apps.rb | |
Padrino.configure_apps do | |
enable :sessions | |
# $ padrino rake gen | |
# $ rake secret | |
set :session_secret, "long secret key pasted here" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or alternatively you can use different rendering modules, such as template inheritance rendering: http://blog.101ideas.cz/posts/padrino-and-template-inheritance.html