class Marten::Template::Tag::Spaceless

Overview

The spaceless template tag.

The {% spaceless %}...{% endspaceless %} template tag allows remove whitespaces, tabs and new lines between HTML tags. Whitespaces inside tags are left untouched.

Defined in:

marten/template/tag/spaceless.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 render(context : Context) : String #
Description copied from class Marten::Template::Tag::Base

Render the template tag for a given context.


[View source]