parsers.lua

Mon, 18 May 2009 01:21:10 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 18 May 2009 01:21:10 +0100
changeset 0
b40ca010c49c
child 12
4c759312950b
permissions
-rw-r--r--

Initial commit

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