class Marten::Template::Tag::Block

Overview

The block template tag.

Blocks allow to define that some specific portions of a template can be overriden by child templates. This tag is only useful when used in conjunction with the extend tag.

Defined in:

marten/template/tag/block.cr

Constructors

Instance Method Summary

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 self.new(parser : Parser, source : String) #

[View source]

Instance Method Detail

def name : String #

[View source]

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

Render the template tag for a given context.


[View source]