module Marten::Template::Tag

Defined in:

marten/template/tag.cr
marten/template/tag/asset.cr
marten/template/tag/assign.cr
marten/template/tag/base.cr
marten/template/tag/block.cr
marten/template/tag/cache.cr
marten/template/tag/concerns/can_extract_assignments.cr
marten/template/tag/concerns/can_extract_kwargs.cr
marten/template/tag/concerns/can_split_smartly.cr
marten/template/tag/csrf_token.cr
marten/template/tag/extend.cr
marten/template/tag/for.cr
marten/template/tag/for/loop.cr
marten/template/tag/if.cr
marten/template/tag/include.cr
marten/template/tag/local_time.cr
marten/template/tag/spaceless.cr
marten/template/tag/super.cr
marten/template/tag/translate.cr
marten/template/tag/url.cr
marten/template/tag/verbatim.cr

Class Method Summary

Class Method Detail

def self.get(tag_name : String | Symbol) #

Returns the tag class corresponding to the passed tag_name.

If no tag can be found, a Marten::Template::Errors::InvalidSyntax exception is raised.


[View source]
def self.register(tag_name : String | Symbol, tag_klass : Base.class) #

Allows to register a new tag.


[View source]
def self.registry #

Returns the current registry of template tags.


[View source]