temple.delims

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.

Members

Enums

CloseDelim
enum CloseDelim

Subset of Delims, only including close delimers

Delim
enum Delim

All of the delimer types parsed by Temple

OpenDelim
enum OpenDelim

Subset of Delims, only including opening delimers

Functions

isShort
bool isShort(Delim d)

Is the delimer a shorthand delimer? e.g., %=, or %

isStr
bool isStr(Delim d)

Is the contents of the delimer evaluated and appended to the template buffer? E.g. the content within <%= %> delims

toString
string toString(Delim d)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

CloseDelims
enum CloseDelims;
Undocumented in source.
Delims
enum Delims;
Undocumented in source.
OpenDelims
enum OpenDelims;
Undocumented in source.
OpenToClose
enum OpenToClose;

Maps an open delimer to its matching closing delimer Formally, an onto function

Templates

DelimPos
template DelimPos(D = Delim)

Represents a delimer and the index that it is located at

Meta