class Marten::Template::Tag::Super
- Marten::Template::Tag::Super
- Marten::Template::Tag::Base
- Reference
- Object
Overview
The super
template tag.
The super
template tag allows to render the content of a block from a parent template (in a situation where
both the extend
and block
tags are used). This can be useful in situations where blocks in a child template
need to extend (add content) to a parent's block content instead of overwriting it.
Defined in:
marten/template/tag/super.crConstructors
Instance Method Summary
-
#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.