my eye

Compile entry as template during render

Committed 2ac555

--- a/webint_posts/templates/__init__.py
+++ b/webint_posts/templates/__init__.py

 
 
 def post_mkdn(content):
-    return web.mkdn(content)  # XXX , globals=micropub.markdown_globals)
+    return str(
+        web.mkdn(
+            str(
+                web.template(
+                    content,
+                    # TODO globals={"get": webagt.get, "pformat": pprint.pformat},
+                    restricted=True,
+                )()
+            )
+        )
+    )
+    # XXX globals=micropub.markdown_globals