Added comment() inja function - Fixes #30

This commit is contained in:
Bartek Kryza
2022-04-02 14:52:00 +02:00
parent 7a8cd5925b
commit 2d9f7c88f5
12 changed files with 94 additions and 6 deletions

View File

@@ -80,6 +80,9 @@ inja::json element::context() const
ctx["alias"] = alias();
ctx["full_name"] = full_name(false);
ctx["namespace"] = get_namespace().to_string();
if (comment().has_value())
ctx["comment"] = comment().value();
return ctx;
}