Module: Tynn::Render
- Defined in:
- lib/tynn/render.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
-
.setup(app, options = {}) ⇒ Object
:nodoc:.
Class Method Details
.setup(app, options = {}) ⇒ Object
:nodoc:
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/tynn/render.rb', line 5 def self.setup(app, = {}) # :nodoc: app.settings.update( layout: .fetch(:layout, "layout"), views: .fetch(:views, File.("views", Dir.pwd)), engine: .fetch(:engine, "erb"), engine_opts: { escape_html: true }.merge!(.fetch(:options, {})) ) end |