temple.temple

Temple (C) Dylan Knutson, 2013, distributed under the: Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:

The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.

Public Imports

temple.temple
public import temple.temple, temple.temple_context, temple.output_stream, temple.vibe;
Undocumented in source.
temple.temple_context
public import temple.temple, temple.temple_context, temple.output_stream, temple.vibe;
Undocumented in source.
temple.output_stream
public import temple.temple, temple.temple_context, temple.output_stream, temple.vibe;
Undocumented in source.
temple.vibe
public import temple.temple, temple.temple_context, temple.output_stream, temple.vibe;
Undocumented in source.

Members

Aliases

TempleFuncType
alias TempleFuncType = typeof(Temple!("", ""))

TempleFuncType TempleLayoutFuncType

TempleLayoutFuncType
alias TempleLayoutFuncType = typeof(TempleLayoutImpl!(Temple!("", "")))
Undocumented in source.

Functions

TempleLayoutImpl
void TempleLayoutImpl(OutputStream buff, TempleFuncType* temple_func, TempleContext context)
Undocumented in source. Be warned that the author may not have intended to support it.
templeToString
string templeToString(TempleFuncType* func, TempleContext context)

Helper functions for quicly rendering a template as a string

templeToString
string templeToString(TempleLayoutFuncType* layout, TempleFuncType* partial, TempleContext context)
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

Temple
template Temple(string __TempleString, __Filter = void)

Temple Main template for generating Temple functions

Temple
template Temple(string __TempleString, string __TempleName, __Filter = void)
Undocumented in source.
TempleFile
template TempleFile(string template_file, Filter = void)

TempleFile Compiles a file on the disk into a Temple render function Takes an optional Filter

TempleFilter
template TempleFilter(Filter)

TempleFilter Partial application of a Filter to be used with the Temple* family of templates

TempleLayout
template TempleLayout(string template_string, Filter = void)

TempleLayout Sets up a template to be used as an enclosing layout for a nested Temple template Takes an optional Filter

TempleLayoutFile
template TempleLayoutFile(string template_file, Filter = void)

TempleLayout Sets up a file to be used as an enclosing layout for a nested Temple template Takes an optional Filter

Meta