[wiaflos-devel] COMMIT - r255 - trunk/wiaflos/server

svn at linuxrulz.org svn at linuxrulz.org
Sat Nov 8 16:42:27 GMT 2008


Author: nkukard
Date: 2008-11-08 16:42:27 +0000 (Sat, 08 Nov 2008)
New Revision: 255

Modified:
   trunk/wiaflos/server/templating.pm
Log:
* Added abort functionality to templating engine


Modified: trunk/wiaflos/server/templating.pm
===================================================================
--- trunk/wiaflos/server/templating.pm	2008-11-08 16:41:50 UTC (rev 254)
+++ trunk/wiaflos/server/templating.pm	2008-11-08 16:42:27 UTC (rev 255)
@@ -26,6 +26,7 @@
 
 
 use Template;
+use Template::Exception;
 
 
 # Exporter stuff
@@ -120,7 +121,14 @@
 }
 
 
+# Internal function to generate a template error
+# Args: template_name params
+sub abort
+{
+	die Template::Exception->new(@_);
+}
 
 
+
 1;
 # vim: ts=4



More information about the wiaflos-devel mailing list