From d9e1b706df7ebcb0fa7e7e716291f9c88aad6a24 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Fri, 22 Jun 2007 21:38:45 +0000 Subject: - Introducing Mootools as base javascript library. - ported Infobox javascript code to this library. - LiveSimpleAjaxRequest uses Ajax-Object from mootools. - Start of distribution of javascript in source form (not compiled into the live binary). --- tntconfig.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tntconfig.cpp') diff --git a/tntconfig.cpp b/tntconfig.cpp index b38865c..1a70aea 100644 --- a/tntconfig.cpp +++ b/tntconfig.cpp @@ -35,6 +35,8 @@ void TntConfig::WriteConfig() // XXX modularize file << "MapUrl ^/$ login@" << endl; + + // the following selects the theme specific 'theme.css' file file << "MapUrl ^/themes/([^/]*)/css.*/(.+\\.css) content@ themes/$1/css/$2 text/css" << endl; // the following rules provide a search scheme for images. The first @@ -46,6 +48,9 @@ void TntConfig::WriteConfig() file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) content@ common/img/$2.$3 image/$3" << endl; file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) $2@" << endl; + // select additional (not build in) javascript. + file << "MapUrl ^/js([^.]*/)(.*\\.js) content@ js$1$2 text/javascript" << endl; + file << "MapUrl ^/css.*/(.+) content@ css/$1 text/css" << endl; file << "MapUrl /([^/]+/.+) content@ $1" << endl; file << "MapUrl /([^.]+)(\\..+)? $1@" << endl; -- cgit v1.2.3