parsers.lua

changeset 0
b40ca010c49c
child 12
4c759312950b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/parsers.lua	Mon May 18 01:21:10 2009 +0100
@@ -0,0 +1,19 @@
+parsers = {};
+
+function parsers.text(text)
+	--FIXME: HTML-escape
+	return text;
+end
+
+local markdown = require "LuaTemplates.markdown"
+function parsers.markdown(text)
+	return markdown(text);
+end
+
+
+local textile = require "LuaTemplates.textile"
+function parsers.textile(text)
+	return textile(text);
+end
+
+return parsers;

mercurial