class Marten::Template::Tag::If
- Marten::Template::Tag::If
- Marten::Template::Tag::Base
- Reference
- Object
Overview
The if
template tag.
The
iftemplate tags allows to define conditions allowing to control which blocks should be executed. An if tag must always start with an
ifcondition, followed by any number of intermediate
elsifconditions and an optional (and final)
else` block.
Included Modules
Defined in:
marten/template/tag/if.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.