Class: Locomotive::Steam::Server::TemplatizedPage
- Inherits:
-
Middleware
- Object
- Middleware
- Locomotive::Steam::Server::TemplatizedPage
- Defined in:
- lib/locomotive/steam/server/templatized_page.rb
Instance Attribute Summary
Attributes inherited from Middleware
#app, #content_entry, #liquid_assigns, #mounting_point, #page, #path, #request
Instance Method Summary collapse
Methods inherited from Middleware
Constructor Details
This class inherits a constructor from Locomotive::Steam::Server::Middleware
Instance Method Details
#call(env) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/locomotive/steam/server/templatized_page.rb', line 6 def call(env) self.set_accessors(env) if self.page && self.page.templatized? self.set_content_entry!(env) end app.call(env) end |