parsers.lua

Sat, 11 Jul 2009 02:14:33 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 11 Jul 2009 02:14:33 +0100
changeset 6
cf40d55f8122
parent 0
b40ca010c49c
child 12
4c759312950b
permissions
-rw-r--r--

Add util module and move first helper function into it

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