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

Method SetTemplateNode

src/include/minja/minja.hpp:1156–1157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154 std::shared_ptr<TemplateNode> template_value;
1155public:
1156 SetTemplateNode(const Location & loc, const std::string & name, std::shared_ptr<TemplateNode> && tv)
1157 : TemplateNode(loc), name(name), template_value(std::move(tv)) {}
1158 void do_render(std::ostringstream &, const std::shared_ptr<Context> & context) const override {
1159 if (!template_value) throw std::runtime_error("SetTemplateNode.template_value is null");
1160 Value value { template_value->render(context) };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected