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