class Marten::Template::Tag::Extend
- Marten::Template::Tag::Extend
- Marten::Template::Tag::Base
- Reference
- Object
Overview
The extend
template tag.
The extend
template tag allows to define that a template inherits from a specific base template. This tag
must be used with one mandatory argument, which can be either a string literal or a variable that will be
resolved at runtime. This mechanism is useful only if the base template defines blocks that are overriden or
extended by the child template.
Included Modules
Defined in:
marten/template/tag/extend.crConstructors
Instance Method Summary
-
#render(context : Context) : String
Render the template tag for a given context.
Instance methods inherited from module Marten::Template::Tag::CanSplitSmartly
split_smartly(expression : String) : Array(String)
split_smartly
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.