module Motion::HTML::CustomTags
Included Modules
- Motion::HTML::CheckTagContent
Direct including types
Defined in:
motion/html/tags/custom_tags.crConstant Summary
-
EMPTY_HTML_ATTRS =
{} of String => String
Instance Method Summary
-
#empty_tag(name : String, options = EMPTY_HTML_ATTRS, **other_options) : Nil
Outputs a custom tag with no tag closing.
- #tag(name : String, content : String | Motion::HTML::AllowedInTags) : Nil
- #tag(name : String, content : Motion::HTML::AllowedInTags | String | Nil = "", options = EMPTY_HTML_ATTRS, attrs : Array(Symbol) = [] of Symbol, **other_options) : Nil
- #tag(name : String, &) : Nil
- #tag(name : String, attrs : Array(Symbol) = [] of Symbol, options = EMPTY_HTML_ATTRS, **other_options, &) : Nil
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>
def tag(name : String, content : Motion::HTML::AllowedInTags | String | Nil = "", options = EMPTY_HTML_ATTRS, attrs : Array(Symbol) = [] of Symbol, **other_options) : Nil
#
def tag(name : String, attrs : Array(Symbol) = [] of Symbol, options = EMPTY_HTML_ATTRS, **other_options, &) : Nil
#