Added support for iterating over diagram elements from inja templates (fixes #54)
This commit is contained in:
@@ -45,6 +45,18 @@ std::string diagram::to_alias(const std::string &full_name) const
|
||||
return full_name;
|
||||
}
|
||||
|
||||
inja::json diagram::context() const {
|
||||
inja::json ctx;
|
||||
ctx["name"] = name();
|
||||
ctx["type"] = "sequence";
|
||||
|
||||
inja::json::array_t elements{};
|
||||
|
||||
ctx["elements"] = elements;
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
namespace clanguml::common::model {
|
||||
|
||||
Reference in New Issue
Block a user