Electroneum
Namespaces | Classes | Typedefs | Enumerations | Functions
crow::mustache Namespace Reference

Namespaces

 detail
 

Classes

struct  Action
 
class  invalid_template_exception
 
class  template_t
 

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_loader (std::function< std::string(std::string)> loader)
 

Typedef Documentation

◆ context

Enumeration Type Documentation

◆ ActionType

Enumerator
Ignore 
Tag 
UnescapeTag 
OpenBlock 
CloseBlock 
ElseBlock 
Partial 

Function Documentation

◆ compile()

template_t crow::mustache::compile ( const std::string &  body)
inline

◆ default_loader()

std::string crow::mustache::default_loader ( const std::string &  filename)
inline

◆ load()

template_t crow::mustache::load ( const std::string &  filename)
inline

◆ set_base()

void crow::mustache::set_base ( const std::string &  path)
inline

◆ set_loader()

void crow::mustache::set_loader ( std::function< std::string(std::string)>  loader)
inline