From 5fc5cfb5014ddcc2942e13a559f4082fb66aa6e7 Mon Sep 17 00:00:00 2001 From: Marius Date: Mon, 20 May 2013 03:20:28 +0300 Subject: beta 2013.05.20 02:00 --- scripts/context/lua/mtx-server-ctx-startup.lua | 78 +++++++++++++------------- 1 file changed, 39 insertions(+), 39 deletions(-) (limited to 'scripts/context/lua/mtx-server-ctx-startup.lua') diff --git a/scripts/context/lua/mtx-server-ctx-startup.lua b/scripts/context/lua/mtx-server-ctx-startup.lua index 8e99e6371..556805113 100644 --- a/scripts/context/lua/mtx-server-ctx-startup.lua +++ b/scripts/context/lua/mtx-server-ctx-startup.lua @@ -1,39 +1,39 @@ -if not modules then modules = { } end modules ['mtx-server-ctx-startup'] = { - version = 1.001, - comment = "Overview Of Goodies", - author = "Hans Hagen", - copyright = "PRAGMA ADE / ConTeXt Development Team", - license = "see context related readme files" -} - -dofile(resolvers.findfile("trac-lmx.lua","tex")) - -function doit(configuration,filename,hashed) - - local list = { } - local root = file.dirname(resolvers.findfile("mtx-server.lua") or ".") - if root == "" then root = "." end - local pattern = root .. "/mtx-server-ctx-*.lua" - local files = dir.glob(pattern) - for i=1,#files do - local filename = file.basename(files[i]) - local name = string.match(filename,"mtx%-server%-ctx%-(.-)%.lua$") - if name and name ~= "startup" then - list[#list+1] = string.format("%s

",filename,name,name) - end - end - - local variables = { - ['color-background-one'] = lmx.get('color-background-green'), - ['color-background-two'] = lmx.get('color-background-blue'), - ['title'] = "Overview Of Goodies", - ['color-background-one'] = lmx.get('color-background-green'), - ['color-background-two'] = lmx.get('color-background-blue'), - ['maintext'] = table.concat(list,"\n"), - } - - return { content = lmx.convert('context-base.lmx',false,variables) } - -end - -return doit, true +if not modules then modules = { } end modules ['mtx-server-ctx-startup'] = { + version = 1.001, + comment = "Overview Of Goodies", + author = "Hans Hagen", + copyright = "PRAGMA ADE / ConTeXt Development Team", + license = "see context related readme files" +} + +dofile(resolvers.findfile("trac-lmx.lua","tex")) + +function doit(configuration,filename,hashed) + + local list = { } + local root = file.dirname(resolvers.findfile("mtx-server.lua") or ".") + if root == "" then root = "." end + local pattern = root .. "/mtx-server-ctx-*.lua" + local files = dir.glob(pattern) + for i=1,#files do + local filename = file.basename(files[i]) + local name = string.match(filename,"mtx%-server%-ctx%-(.-)%.lua$") + if name and name ~= "startup" then + list[#list+1] = string.format("%s

",filename,name,name) + end + end + + local variables = { + ['color-background-one'] = lmx.get('color-background-green'), + ['color-background-two'] = lmx.get('color-background-blue'), + ['title'] = "Overview Of Goodies", + ['color-background-one'] = lmx.get('color-background-green'), + ['color-background-two'] = lmx.get('color-background-blue'), + ['maintext'] = table.concat(list,"\n"), + } + + return { content = lmx.convert('context-base.lmx',false,variables) } + +end + +return doit, true -- cgit v1.2.3