Electroneum
Classes | Namespaces | Typedefs | Enumerations | Functions
mustache.h File Reference
#include <string>
#include <vector>
#include <fstream>
#include <iterator>
#include <functional>
#include "json.h"
Include dependency graph for mustache.h:

Go to the source code of this file.

Classes

class  crow::mustache::invalid_template_exception
 
struct  crow::mustache::Action
 
class  crow::mustache::template_t
 

Namespaces

 crow
 
 crow::mustache
 
 crow::mustache::detail
 

Typedefs

using crow::mustache::context = json::wvalue
 

Enumerations

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

Functions

template_t crow::mustache::load (const std::string &filename)
 
template_t crow::mustache::compile (const std::string &body)
 
std::string & crow::mustache::detail::get_template_base_directory_ref ()
 
std::string crow::mustache::default_loader (const std::string &filename)
 
std::function< std::string(std::string)> & crow::mustache::detail::get_loader_ref ()
 
void crow::mustache::set_base (const std::string &path)
 
void crow::mustache::set_loader (std::function< std::string(std::string)> loader)