aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/TemplateManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/TemplateManager.cpp b/src/TemplateManager.cpp
index ff14610..025ceb8 100644
--- a/src/TemplateManager.cpp
+++ b/src/TemplateManager.cpp
@@ -13,6 +13,12 @@ TemplateManager::TemplateManager()
return true;
});
/*
+ * itoa(convertable);
+ */
+ AddInjaCallback("itoa", 1, [](inja::Arguments & args) {
+ return std::to_string(args.at(0)->get<int>());
+ });
+ /*
* indent(input: str, width: int, first: bool, blank: bool);
*/
AddInjaCallback("indent", 4, [](inja::Arguments & args) {