calliope v0.4.2 Calliope.Engine
Summary
Functions
The Calliope Engine allows you to precompile your haml templates to be accessed through functions at runtime
Functions
The Calliope Engine allows you to precompile your haml templates to be accessed through functions at runtime.
Example:
defmodule Simple do
use Calliope.Engine
def show do
content_for(:show, [title: Calliope])
end
end
The configure options are:
:path
- provides the root path. The default is the current working directory.
:templates
- used to define where the templates are stored.
:alias
- used to set the directory where the templates are located. The
default value is 'templates'.
:layout
- the layout to use for templates. The default is :none
or you can pass in
the name of a layout.
:layout_directory
- the directory that your layouts are stored relative to the
templates path. The default directory is `layouts`