abstract class UserLayout
- UserLayout
- Reference
- Object
Included Modules
- Lucky::HTMLPage
Direct Known Subclasses
Defined in:
pages/user_layout.crConstant Summary
-
ASSIGNS =
[context : HTTP::Server::Context, current_user : User] of Nil
Instance Method Summary
- #content
-
#current_user
'needs current_user : User' makes it so that the current_user is always required for pages using UserLayout
-
#page_title
UserLayout defines a default 'page_title'.
- #render
Instance Method Detail
def current_user
#
'needs current_user : User' makes it so that the current_user is always required for pages using UserLayout
def page_title
#
UserLayout defines a default 'page_title'.
Add a 'page_title' method to your indivual pages to customize each page's title.
Or, if you want to require every page to set a title, change the 'page_title' method in this layout to:
abstract def page_title : String
This will force pages to define their own 'page_title' method.