Class Gunther.Template

Defined in: src/template.coffee

Overview

The Main Gunther Template Class

Main template class

Instance Method Summary

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

Returns:

  • Returns an Array of DOM elements

::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()