Kitto v0.3.1 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 layout with template specified

Returns the EEx compiled output of the error template

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, assigns \\ [])

Returns the EEx compiled output of the layout with template specified

render_error(code, message)

Returns the EEx compiled output of the error template

render_template(template, assigns \\ [])

Returns the EEx compiled output of the template specified