File: partial.coffee

Defined in: template

Method Summary

Method Details

? Gunther.addPartial(key, handler) Source

Add a partial

Parameters:

  • (String) keyString name of the partial
  • (Function) handlerFunction method to execute when partial is to be rendered

? Gunther.removePartial(key) Source

Remove a partial

See {Gunther::addPartial}

Parameters:

  • (String) keyString name of the partial

? Gunther.Template.prototype.partial(key, args...) Source

Render a registered partial

Arguments after key are passed directly to the partial's handler

Parameters:

  • (String) keyString name of the partials