class Template

Direct Known Subclasses

Defined in:

stimulus/stimulus_controller.cr
template/tag_attr.cr
template/template.cr

Constant Summary

CONTENT_TAG_NAMES = ["html", "head", "title", "script", "body", "nav", "ul", "li", "a", "div", "p", "strong", "i", "form", "aside", "main", "section", "header", "h1", "h2", "h3", "h4", "h5", "h6", "table", "thead", "tbody", "tr", "td"] of ::String
STANDALONE_TAG_NAMES = ["link", "img", "br"] of ::String

Instance Method Summary

Macro Summary

Instance Method Detail

def end_tag(io : IO, name : String) #

[View source]
def standalone_tag(io, name, *attrs) #

[View source]
def start_tag(io, name, *attrs) #

[View source]
def tag(io, name, *attrs, &) #

[View source]
def tag(io, name, *attrs) #

[View source]
def tag_begin(io : IO, name : String, arg) #

[View source]
def tag_begin(io : IO, name : String) #

[View source]
def tag_begin(io : IO, name : String, *args) #

[View source]
def to_s(__tplio__ : IO) #

default implementation to calm down the compiler


[View source]

Macro Detail

macro a(*attrs, &block) #

[View source]
macro aside(*attrs, &block) #

[View source]
macro body(*attrs, &block) #

[View source]
macro br(*attrs) #

[View source]
macro capture_elems(&blk) #

[View source]
macro div(*attrs, &block) #

[View source]
macro eval_exp(&blk) #

[View source]
macro form(*attrs, &block) #

[View source]
macro h1(*attrs, &block) #

[View source]
macro h2(*attrs, &block) #

[View source]
macro h3(*attrs, &block) #

[View source]
macro h4(*attrs, &block) #

[View source]
macro h5(*attrs, &block) #

[View source]
macro h6(*attrs, &block) #

[View source]
macro head(*attrs, &block) #

[View source]
macro header(*attrs, &block) #

[View source]
macro href(value) #

[View source]
macro html(*attrs, &block) #

[View source]
macro i(*attrs, &block) #

[View source]
macro img(*attrs) #

[View source]
macro li(*attrs, &block) #

[View source]
macro link(*attrs) #

[View source]
macro main(*attrs, &block) #

[View source]
macro nav(*attrs, &block) #

[View source]
macro p(*attrs, &block) #

[View source]
macro resource_link(res, caption) #

[View source]
macro script(*attrs, &block) #

[View source]
macro section(*attrs, &block) #

[View source]
macro stimulus_include(code) #

[View source]
macro strong(*attrs, &block) #

[View source]
macro style(style_class) #

[View source]
macro table(*attrs, &block) #

[View source]
macro tbody(*attrs, &block) #

[View source]
macro td(*attrs, &block) #

[View source]
macro template(&blk) #

[View source]
macro thead(*attrs, &block) #

[View source]
macro title(*attrs, &block) #

[View source]
macro tr(*attrs, &block) #

[View source]
macro ul(*attrs, &block) #

[View source]