module Lucky::CustomTags
Included Modules
- Lucky::CheckTagContent
Direct including types
Defined in:
lucky/tags/custom_tags.crConstant Summary
-
EMPTY_HTML_ATTRS =
{} of String => String
Instance Method Summary
-
#empty_tag(tag_name : String, options = EMPTY_HTML_ATTRS, **other_options) : Nil
Outputs a custom tag with no tag closing.
- #tag(tag_name : String, content : Lucky::AllowedInTags | String | Nil = "", options = EMPTY_HTML_ATTRS, attrs : Array(Symbol) = [] of Symbol, **other_options) : Nil
- #tag(tag_name : String, options = EMPTY_HTML_ATTRS, **other_options) : Nil
- #tag(tag_name : String, attrs : Array(Symbol) = [] of Symbol, options = EMPTY_HTML_ATTRS, **other_options, &) : Nil
Instance Method Detail
Outputs a custom tag with no tag closing.
empty_tag("br")
=> <br>
def tag(tag_name : String, content : Lucky::AllowedInTags | String | Nil = "", options = EMPTY_HTML_ATTRS, attrs : Array(Symbol) = [] of Symbol, **other_options) : Nil
#