Minor quirks and commentary corrected
authorTimm S. Mueller <tmueller@neoscientists.org>
Sat, 15 Dec 2007 16:53:38 +0100
changeset 222cb91d3398f6e
parent 221 aa04d005bdf0
child 223 b2151b233fa7
child 224 47382ae7b824
Minor quirks and commentary corrected
cgi-bin/tek/class/loona.lua
etc/config.lua.sample
     1.1 --- a/cgi-bin/tek/class/loona.lua	Sat Dec 15 04:37:21 2007 +0100
     1.2 +++ b/cgi-bin/tek/class/loona.lua	Sat Dec 15 16:53:38 2007 +0100
     1.3 @@ -12,7 +12,7 @@
     1.4  local cgi = require "tek.class.cgi"
     1.5  local Request = require "tek.class.cgi.request"
     1.6  local util = require "tek.class.loona.util"
     1.7 -local Markup = require "tek.class.markup"
     1.8 +local markup = require "tek.class.markup"
     1.9  
    1.10  local boxed_G = {
    1.11  	string = string, table = table,
    1.12 @@ -65,7 +65,7 @@
    1.13  	local t = { '<%loona:include("', args[1], '"' }
    1.14  	table.remove(args, 1)
    1.15  	for _, v in ipairs(args) do
    1.16 -		insert(t, ',' .. v)
    1.17 +		table.insert(t, ',' .. v)
    1.18  	end
    1.19  	return table.concat(t), ')%>'
    1.20  end
    1.21 @@ -1585,10 +1585,11 @@
    1.22  
    1.23  function Loona:domarkup(s)
    1.24  	local t = { }
    1.25 -	local is_dynamic = Markup:new {
    1.26 -		input = s, features = "hespcadlintf",
    1.27 -		indentchar = " ", wrfunc = function(s) table.insert(t, s) end }:run()
    1.28 -	return table.concat(t), is_dynamic
    1.29 +	local is_dynamic = markup:new { input = s,
    1.30 +		wrfunc = function(s) insert(t, s) end }:run()
    1.31 +	return concat(t), is_dynamic
    1.32 +
    1.33 +-- 	return markup.load(s)
    1.34  end
    1.35  
    1.36  
     2.1 --- a/etc/config.lua.sample	Sat Dec 15 04:37:21 2007 +0100
     2.2 +++ b/etc/config.lua.sample	Sat Dec 15 16:53:38 2007 +0100
     2.3 @@ -50,5 +50,5 @@
     2.4  -- Allow editing of published profile -----------------------------------------
     2.5  -- editablepubprofile = false;
     2.6  
     2.7 --- Default profile a user is thrown into by default ---------------------------
     2.8 +-- Default profile a user is thrown into --------------------------------------
     2.9  -- defprofile = "...";