The main inja Template. More...
#include <inja.hpp>
Public Member Functions | |
| Template () | |
| Template (const std::string &content) | |
| unsigned int | count_variables () |
| Return number of variables (total number, not distinct ones) in the template. | |
Public Attributes | |
| BlockNode | root |
| std::string | content |
| std::map< std::string, std::shared_ptr< BlockStatementNode > > | block_storage |
|
inlineexplicit |
Definition at line 893 of file inja.hpp.
References content.
Referenced by inja::Parser::add_to_template_storage(), inja::Parser::parse(), and inja::Environment::parse_template().
|
inline |
Return number of variables (total number, not distinct ones) in the template.
Definition at line 898 of file inja.hpp.
References inja::BlockNode::accept(), root, inja::StatisticsVisitor::StatisticsVisitor(), and inja::StatisticsVisitor::variable_counter.
| std::map<std::string, std::shared_ptr<BlockStatementNode> > inja::Template::block_storage |
Definition at line 889 of file inja.hpp.
Referenced by inja::Parser::parse_statement(), inja::Renderer::visit(), and inja::Renderer::visit().
| std::string inja::Template::content |
Definition at line 888 of file inja.hpp.
Referenced by inja::Parser::parse_expression(), inja::Parser::parse_into(), inja::Parser::parse_statement(), Template(), inja::Renderer::throw_renderer_error(), and inja::Renderer::visit().
| BlockNode inja::Template::root |
Definition at line 887 of file inja.hpp.
Referenced by count_variables(), inja::Parser::parse_into(), and inja::Renderer::render_to().