parsers.lua

Sat, 23 May 2009 20:18:49 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 23 May 2009 20:18:49 +0100
changeset 4
cebf96c3b522
parent 0
b40ca010c49c
child 12
4c759312950b
permissions
-rw-r--r--

Correctly parse file extension to determine post format

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