| 2686 | public: |
| 2687 | |
| 2688 | static std::shared_ptr<TemplateNode> parse(const std::string& template_str, const Options & options) { |
| 2689 | Parser parser(std::make_shared<std::string>(normalize_newlines(template_str)), options); |
| 2690 | auto tokens = parser.tokenize(); |
| 2691 | TemplateTokenIterator begin = tokens.begin(); |
| 2692 | auto it = begin; |
| 2693 | TemplateTokenIterator end = tokens.end(); |
| 2694 | return parser.parseTemplate(begin, it, end, /* fully= */ true); |
| 2695 | } |
| 2696 | }; |
| 2697 | |
| 2698 | static Value simple_function(const std::string & fn_name, const std::vector<std::string> & params, const std::function<Value(const std::shared_ptr<Context> &, Value & args)> & fn) { |
no test coverage detected