calliope v0.4.2 Calliope.Engine

Summary

Functions

__using__(opts \\ []) (macro)

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`
build_path_for(list)
compile_layout(arg1, path) (macro)
compile_templates(path) (macro)
eval_path(path)
files_for(path)
haml_views(files)
precompile_view(path)
view_to_function(list, path)