Class Gunther.Template
Defined in: | src/template.coffee |
Overview
The Main Gunther Template Class
Main template class
Instance Method Summary
-
::attr(args...)
Alias for
@attribute()
-
::class(className)
Alias for
@attribute 'class', className
-
::e(tagName, args...)
Alias for
@element()
-
::prop(args...)
Alias for
@property
- ::render(args...) Render the template
- ::renderInto(el, args...) Render into an element This will append the elements from the template into the passed DOM element It returns the rendered elements
- ::subTemplate(template, args...) Render a sub-template
-
::t(args...)
Alias for
@text()
Instance Method Details
::attr(args...) Source
Alias for @attribute()
::class(className) Source
Alias for @attribute 'class', className
::e(tagName, args...) Source
Alias for @element()
::prop(args...) Source
Alias for @property
::render(args...) Source
Render the template
::renderInto(el, args...) Source
Render into an element
This will append the elements from the template into the passed DOM element
It returns the rendered elements
::subTemplate(template, args...) Source
Render a sub-template
::t(args...) Source
Alias for @text()