Index: functions/set_title.py |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/functions/set_title.py |
@@ -0,0 +1,6 @@ |
+from jinja2 import contextfunction |
+ |
+@contextfunction |
+def set_title(context, value): |
+ context.resolve("params")["title"] = value |
+ return "" |