class
Marten::Template::Node::Text
- Marten::Template::Node::Text
- Marten::Template::Node::Base
- Reference
- Object
Overview
Represents a text node.
A text will simply output its raw content at rendering time.
Defined in:
marten/template/node/text.crConstructors
Instance Method Summary
-
#render(context : Context) : String
Given a
Marten::Template::Contextobject, generates aStringoutput. -
#without_trailing_whitespace : Text | Nil
Returns a copy of the text node with trailing whitespace removed, or
nilif the result is empty.
Instance methods inherited from class Marten::Template::Node::Base
render(context : Context) : String
render
Constructor Detail
Instance Method Detail
Description copied from class Marten::Template::Node::Base
Given a Marten::Template::Context object, generates a String output.
Returns a copy of the text node with trailing whitespace removed, or nil if the result is empty.