Electroneum
Classes | Namespaces | Typedefs | Functions
mstch.hpp File Reference
#include <vector>
#include <map>
#include <string>
#include <memory>
#include <functional>
#include <boost/variant.hpp>
Include dependency graph for mstch.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mstch::config
 
class  mstch::internal::object_t< N >
 
class  mstch::internal::is_fun< T, N >
 
struct  mstch::internal::is_fun< T, N >::really_has< U, U >
 
class  mstch::internal::lambda_t< N >
 
struct  mstch::internal::map< Key, Value >
 

Namespaces

 mstch
 
 mstch::internal
 

Typedefs

template<class N >
using mstch::internal::node_renderer = std::function< std::string(const N &n)>
 
using mstch::node = boost::make_recursive_variant< std::nullptr_t, std::string, int, double, bool, uint64_t, int64_t, uint32_t, internal::lambda_t< boost::recursive_variant_ >, std::shared_ptr< internal::object_t< boost::recursive_variant_ > >, internal::map< const std::string, boost::recursive_variant_ >, std::vector< boost::recursive_variant_ > >::type
 
using mstch::object = internal::object_t< node >
 
using mstch::lambda = internal::lambda_t< node >
 
using mstch::map = internal::map< const std::string, node >
 
using mstch::array = std::vector< node >
 

Functions

std::string mstch::render (const std::string &tmplt, const node &root, const std::map< std::string, std::string > &partials=std::map< std::string, std::string >())