Class: Templater

Defined in: src/util/templater.coffee

Overview

Haml Coffee template compiler.

Instance Method Summary

Constructor Details

.constructor(options, referencer, parser) Source

Construct the templater. Reads all templates and constructs

Parameters:

  • optionsthe options (a [Object])
  • referencerthe link type referencer (a [Referencer])
  • parserthe biscotto parser (a [Parser])

Instance Method Details

.gitHubUrl() Source

.redirect(file) Source

Redirect template generation to a callback.

Parameters:

  • filethe file callback function (a [Function])

.render(template, context = {}, filename = '') Source

Render the given template with the context and the

Parameters:

  • templatethe template name (a [String])
  • contextthe context object (a [Object])
  • filenamethe output file name (a [String])