File: text.coffee
Defined in: | template |
Method Summary
- ? Gunther.Template.prototype.text(text) #
- ? Gunther.Template.prototype.boundText(args...) Bind a text node to a model's property
- ? Gunther.Template.prototype.spacedText(text) Add text, with spaces on either side {Gunther.Template::text} adds its text node without whitespace surrounding it, which is sometimes not desired for stylistic reasons.
Method Details
? Gunther.Template.prototype.text(text) Source
Public
Add text to the current element
This will create a text node and append it to the current element
? Gunther.Template.prototype.boundText(args...) Source
Bind a text node to a model's property
? Gunther.Template.prototype.spacedText(text) Source
Add text, with spaces on either side
{Gunther.Template::text} adds its text node without whitespace surrounding it, which is sometimes not desired for stylistic reasons. This method will add the text surrounded by a space on either side.