1#ifndef INCLUDE_INJA_TEMPLATE_HPP_
2#define INCLUDE_INJA_TEMPLATE_HPP_
9#include "statistics.hpp"
19 std::map<std::string, std::shared_ptr<BlockStatementNode>> block_storage;
22 explicit Template(std::string content): content(std::move(content)) {}
27 root.accept(statistic_visitor);
28 return statistic_visitor.variable_counter;
32using 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:16
size_t count_variables() const
Return number of variables (total number, not distinct ones) in the template.
Definition template.hpp:25