class Marten::Template::Tag::Assign


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:



Instance Method Summary

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

def : Parser, source : String) #

[View source]

Instance Method Detail

def render(context : Context) : String #
Description copied from class Marten::Template::Tag::Base

Render the template tag for a given context.

[View source]