Crow  1.0
A C++ microframework for the web
crow::mustache Namespace Reference

Namespaces

 detail
 

Classes

struct  Action
 
class  invalid_template_exception
 
struct  rendered_template
 
class  template_t
 A mustache template object. More...
 

Typedefs

using context = json::wvalue
 

Enumerations

enum  ActionType {
  ActionType::Ignore,
  ActionType::Tag,
  ActionType::UnescapeTag,
  ActionType::OpenBlock,
  ActionType::CloseBlock,
  ActionType::ElseBlock,
  ActionType::Partial
}
 

Functions

template_t load (const std::string &filename)
 
template_t compile (const std::string &body)
 
std::string default_loader (const std::string &filename)
 
void set_base (const std::string &path)
 
void set_global_base (const std::string &path)
 
void set_loader (std::function< std::string(std::string)> loader)
 
std::string load_text (const std::string &filename)
 
std::string load_text_unsafe (const std::string &filename)
 
template_t load_unsafe (const std::string &filename)
 

Typedef Documentation

◆ context

Enumeration Type Documentation

◆ ActionType

Enumerator
Ignore 
Tag 
UnescapeTag 
OpenBlock 
CloseBlock 
ElseBlock 
Partial 

Function Documentation

◆ load()

template_t crow::mustache::load ( const std::string &  filename)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ compile()

template_t crow::mustache::compile ( const std::string &  body)
inline
Here is the caller graph for this function:

◆ default_loader()

std::string crow::mustache::default_loader ( const std::string &  filename)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_base()

void crow::mustache::set_base ( const std::string &  path)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_global_base()

void crow::mustache::set_global_base ( const std::string &  path)
inline
Here is the call graph for this function:

◆ set_loader()

void crow::mustache::set_loader ( std::function< std::string(std::string)>  loader)
inline
Here is the call graph for this function:

◆ load_text()

std::string crow::mustache::load_text ( const std::string &  filename)
inline
Here is the call graph for this function:

◆ load_text_unsafe()

std::string crow::mustache::load_text_unsafe ( const std::string &  filename)
inline
Here is the call graph for this function:

◆ load_unsafe()

template_t crow::mustache::load_unsafe ( const std::string &  filename)
inline
Here is the call graph for this function: