abstract class Marten::Template::Tag::Base

Overview

The template tag base class.

Template tags allow to implement complex logics and control flows such as for loop, if blocks, etc. They use the {% tag %} syntax and are rendered inside a template for a given context.

Direct Known Subclasses

Defined in:

marten/template/tag/base.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(parser : Parser, source : String) #

[View source]

Instance Method Detail

abstract def render(context : Context) : String #

Render the template tag for a given context.


[View source]