1#ifndef INCLUDE_INJA_TEMPLATE_HPP_
2#define INCLUDE_INJA_TEMPLATE_HPP_
10#include "statistics.hpp"
21 std::map<std::string, std::shared_ptr<BlockStatementNode>> block_storage;
24 explicit Template(
const std::string& content): content(content) { }
29 root.accept(statistic_visitor);
30 return statistic_visitor.variable_counter;
34using TemplateStorage = std::map<std::string, Template>;
A class for counting statistics on a Template.
Definition: statistics.hpp:12
The main inja Template.
Definition: template.hpp:18
int count_variables()
Return number of variables (total number, not distinct ones) in the template.
Definition: template.hpp:27