Kitto v0.3.0 Kitto.View

HTML rendering facility.

This module defines functions to deal with EEx templates used to provide markup for the dashboards.

Configuration Options

  • templates_dir - Where to look for templates, defaults to “dashboards”.
  • default_layout - The layout in which to wrap dashboards, defaults to “layout” found in the templates_dir.

Summary

Functions

Returns true if the given template exists in the templates directory

Returns the EEx compiled output of the template specified

Functions

exists?(template)

Returns true if the given template exists in the templates directory

render(template)

Returns the EEx compiled output of the template specified