class Components::Page

Defined in:

components.cr

Constructors

Instance Method Summary

Instance methods inherited from class Components::Component

<<(child : Component | Elements::HTMLElement | String | Elements::RawHTML) : self <<, [](name : String) : String | Nil [], []=(name : String, value : String) : String []=, add_children(*children : Component | Elements::HTMLElement | String | Elements::RawHTML) : self add_children, attributes : Hash(String, String) attributes, build(&block : self -> Nil) : self build, children : Array(Component | Elements::HTMLElement | String | Elements::RawHTML) children, component_id : String component_id, render : SafeHTML render, render_content : String render_content, render_safe_content : SafeHTML render_safe_content, to_raw_html : Elements::RawHTML to_raw_html, to_s(io : IO) : Nil to_s

Constructor methods inherited from class Components::Component

new(**attrs) new

Macros inherited from class Components::Component

component_css(css_string) component_css

Constructor Detail

def self.new(title : String, lang : String = "en", &block : Nil -> ) #

[View source]

Instance Method Detail

def body_content : Proc(Nil) | Nil #

[View source]
def body_content=(body_content : Proc(Nil) | Nil) #

[View source]
def head_content : Proc(Nil) | Nil #

[View source]
def head_content=(head_content : Proc(Nil) | Nil) #

[View source]
def lang=(lang : String) #

[View source]
def lang? : String #

[View source]
def render_content : String #
Description copied from class Components::Component

Abstract method to be implemented by subclasses


[View source]
def title : String #

[View source]
def title=(title : String) #

[View source]