Crossfire Server, Trunk
inja::Template Struct Reference

The main inja Template. More...

#include <inja.hpp>

+ Collaboration diagram for inja::Template:

Public Member Functions

int count_variables ()
 Return number of variables (total number, not distinct ones) in the template. More...
 
 Template ()
 
 Template (const std::string &content)
 

Data Fields

std::map< std::string, std::shared_ptr< BlockStatementNode > > block_storage
 
std::string content
 
BlockNode root
 

Detailed Description

The main inja Template.

Definition at line 2836 of file inja.hpp.

Constructor & Destructor Documentation

◆ Template() [1/2]

inja::Template::Template ( )
inlineexplicit

Definition at line 2841 of file inja.hpp.

◆ Template() [2/2]

inja::Template::Template ( const std::string &  content)
inlineexplicit

Definition at line 2842 of file inja.hpp.

Member Function Documentation

◆ count_variables()

int inja::Template::count_variables ( )
inline

Return number of variables (total number, not distinct ones) in the template.

Definition at line 2845 of file inja.hpp.

References root.

Field Documentation

◆ block_storage

std::map<std::string, std::shared_ptr<BlockStatementNode> > inja::Template::block_storage

Definition at line 2839 of file inja.hpp.

Referenced by inja::Parser::parse_statement(), and inja::Renderer::visit().

◆ content

◆ root

BlockNode inja::Template::root

Definition at line 2837 of file inja.hpp.

Referenced by inja::Parser::parse_into(), and inja::Renderer::render_to().


The documentation for this struct was generated from the following file: