Class: Locomotive::Steam::Server::Page

Inherits:
Middleware
  • Object
show all
Defined in:
lib/locomotive/steam/server/page.rb

Overview

Sanitize the path from the previous middleware in order to make it work for the renderer.

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

#initialize

Constructor Details

This class inherits a constructor from Locomotive::Steam::Server::Middleware

Instance Method Details

#call(env) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/locomotive/steam/server/page.rb', line 9

def call(env)
  self.set_accessors(env)

  self.set_page!(env)

  app.call(env)
end