module Motion::HTML::CustomTags

Included Modules

Direct including types

Defined in:

motion/html/tags/custom_tags.cr

Constant Summary

EMPTY_HTML_ATTRS = {} of String => String

Instance Method Summary

Instance Method Detail

def empty_tag(name : String, options = EMPTY_HTML_ATTRS, **other_options) : Nil #

Outputs a custom tag with no tag closing. empty_tag("br") => <br>


[View source]
def tag(name : String, content : String | Motion::HTML::AllowedInTags) : Nil #

[View source]
def tag(name : String, content : Motion::HTML::AllowedInTags | String | Nil = "", options = EMPTY_HTML_ATTRS, attrs : Array(Symbol) = [] of Symbol, **other_options) : Nil #

[View source]
def tag(name : String, &) : Nil #

[View source]
def tag(name : String, attrs : Array(Symbol) = [] of Symbol, options = EMPTY_HTML_ATTRS, **other_options, &) : Nil #

[View source]