Kitto v0.9.1 Kitto.View View Source

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.

Link to this section 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

Link to this section Functions

Returns true if the given template exists in the templates directory

Link to this function render(template, assigns \\ []) View Source

Returns the EEx compiled output of the layout with template specified

Link to this function render_error(code, message) View Source

Returns the EEx compiled output of the error template

Link to this function render_template(template, assigns \\ []) View Source

Returns the EEx compiled output of the template specified