class
Marten::Template::Tag::Filter
- Marten::Template::Tag::Filter
- Marten::Template::Tag::Base
- Reference
- Object
Overview
The filter template tag.
The filter tag allows to apply one or more filters to the content of the tag. For example:
{% filter upcase %}Hello {{ name }}!{% endfilter %}
{% filter upcase|truncate:8 %}Hello world, {{ name }}!{% endfilter %}
Defined in:
marten/template/tag/filter.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.