class
Versions::ComparePage
- Versions::ComparePage
- MainLayout
- Reference
- Object
Defined in:
pages/versions/compare_page.crConstant Summary
-
ASSIGNS =
[context : HTTP::Server::Context, diff : String, from : String, to : String, view_mode : String] of Nil
Constructors
Instance Method Summary
- #content
- #diff : String
- #from : String
-
#page_title
The default page title.
- #to : String
- #version_picker(*, input_name, selected_version, auto_submit = false)
- #view_mode : String
Instance methods inherited from class MainLayout
content
content,
page_title
page_title,
render
render
Constructor Detail
def self.new(context : HTTP::Server::Context, diff : String, from : String, to : String, view_mode : String, **unused_exposures)
#
Instance Method Detail
def page_title
#
Description copied from class MainLayout
The default page title. It is passed to Shared::LayoutHead.
Add a #page_title method to pages to override it. You can also remove
This method so every page is required to have its own page title.