class Marten::Template::Tag::Assign
- Marten::Template::Tag::Assign
- Marten::Template::Tag::Base
- Reference
- Object
Overview
The assign
template tag.
The assign
template tag allows to define new variables that will be stored in the template's context:
{% assign my_var = "Hello World!" %}
Included Modules
Defined in:
marten/template/tag/assign.crConstructors
Instance Method Summary
-
#render(context : Context) : String
Render the template tag for a given context.
Instance methods inherited from module Marten::Template::Tag::CanExtractAssignments
extract_assignments(source : String)
extract_assignments
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.