Simplates v0.5.0 Simplates.Simplate

A simplate is a dynamic resource with multiple syntaxes in one file.

Summary

Functions

Creates a simplate based on the file

Returns a simplate based on a filesystem path

Returns a simplate based on a string, misses extension negotiation

Functions

config(atom)
create(raw, fs_path)

Creates a simplate based on the file

create_from_file(fs_path)

Returns a simplate based on a filesystem path

create_from_string(raw)

Returns a simplate based on a string, misses extension negotiation

render(simplate)
render(simplate, content_type)
render(simplate, content_type, context)