abstract class MainLayout

Overview

Parent class for all pages distinguishing between users and guests.

The current_user can be nil, meaning that even a guest can enter its children if those do not overwrite this variable. In this class the header and footer are mounted and the header is given the information wether or not to display the logout button and email.

Included Modules

Direct Known Subclasses

Defined in:

pages/main_layout.cr

Constant Summary

ASSIGNS = [context : HTTP::Server::Context, current_user : User | ::Nil] of Nil

Instance Method Summary

Instance Method Detail

abstract def content #

[View source]
def current_user #

def page_title #

[View source]
def render #

[View source]