[wiaflos-devel] COMMIT - r236 - in trunk: soap wiaflos/server
svn at linuxrulz.org
svn at linuxrulz.org
Sun Aug 17 13:17:42 GMT 2008
Author: nkukard
Date: 2008-08-17 13:17:42 +0000 (Sun, 17 Aug 2008)
New Revision: 236
Modified:
trunk/soap/wiaflos-server
trunk/wiaflos/server/templating.pm
Log:
* Added interpollation into templating engine
* Added optional debug option to templating config
Modified: trunk/soap/wiaflos-server
===================================================================
--- trunk/soap/wiaflos-server 2008-08-17 13:14:06 UTC (rev 235)
+++ trunk/soap/wiaflos-server 2008-08-17 13:17:42 UTC (rev 236)
@@ -141,6 +141,7 @@
# Template engine config
my @template_params = (
'path',
+ 'debug',
'global_header',
'global_footer',
);
Modified: trunk/wiaflos/server/templating.pm
===================================================================
--- trunk/wiaflos/server/templating.pm 2008-08-17 13:14:06 UTC (rev 235)
+++ trunk/wiaflos/server/templating.pm 2008-08-17 13:17:42 UTC (rev 236)
@@ -90,12 +90,16 @@
# Build config
my $cfg = {
+ # Interpolate variables in-place
+ INTERPOLATE => 1,
# Include paths, separated by :
INCLUDE_PATH => $config->{'path'},
# Header
PRE_PROCESS => $config->{'global_header'},
# Footer
POST_PROCESS => $config->{'global_footer'},
+ # Debug
+ DEBUG => $config->{'debug'},
};
# Create template object
More information about the wiaflos-devel
mailing list