MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / ForNode

Method ForNode

src/include/minja/minja.hpp:971–973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969 std::shared_ptr<TemplateNode> else_body;
970public:
971 ForNode(const Location & loc, std::vector<std::string> && var_names, std::shared_ptr<Expression> && iterable,
972 std::shared_ptr<Expression> && condition, std::shared_ptr<TemplateNode> && body, bool recursive, std::shared_ptr<TemplateNode> && else_body)
973 : TemplateNode(loc), var_names(var_names), iterable(std::move(iterable)), condition(std::move(condition)), body(std::move(body)), recursive(recursive), else_body(std::move(else_body)) {}
974
975 void do_render(std::ostringstream & out, const std::shared_ptr<Context> & context) const override {
976 // https://jinja.palletsprojects.com/en/3.0.x/templates/#for

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected