class Marten::Template::Tag::CsrfToken
- Marten::Template::Tag::CsrfToken
- Marten::Template::Tag::Base
- Reference
- Object
Overview
The csrf_token
template tag.
The csrf_token
template tag allows to compute and insert the value of the CSRF token into a template. This
tag requires the presence of a handler object in the template context (under the "handler"
key), otherwise an
empty token is returned.
Defined in:
marten/template/tag/csrf_token.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.