class Marten::Template::Tag::Block
- Marten::Template::Tag::Block
- Marten::Template::Tag::Base
- Reference
- Object
Overview
The block
template tag.
Blocks allow to define that some specific portions of a template can be overriden by child templates. This tag
is only useful when used in conjunction with the extend
tag.
Defined in:
marten/template/tag/block.crConstructors
Instance Method Summary
- #name : String
- #nodes : Marten::Template::NodeSet
-
#render(context : Context) : String
Render the template tag for a given context.
Instance methods inherited from class Marten::Template::Tag::Base
render(context : Context) : String
render
Constructor methods inherited from class Marten::Template::Tag::Base
new(parser : Parser, source : String)
new
Constructor Detail
Instance Method Detail
Description copied from class Marten::Template::Tag::Base
Render the template tag for a given context.