module Lucky::CustomTags

Included Modules

Direct including types

Defined in:

lucky/tags/custom_tags.cr

Constant Summary

EMPTY_HTML_ATTRS = {} of String => String

Instance Method Summary

Instance Method Detail

def empty_tag(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(tag_name : String, content : Lucky::AllowedInTags | String | Nil = "", options = EMPTY_HTML_ATTRS, attrs : Array(Symbol) = [] of Symbol, **other_options) : Nil #

[View source]
def tag(tag_name : String, options = EMPTY_HTML_ATTRS, **other_options) : Nil #

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

[View source]