parsers.lua

Sat, 11 Jul 2009 03:36:57 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 11 Jul 2009 03:36:57 +0100
changeset 9
13eb9435e1c0
parent 0
b40ca010c49c
child 12
4c759312950b
permissions
-rwxr-xr-x

Allow config file to be specified with flag on the command-line

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