W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

2006/unicorn/src/org/w3c/unicorn Framework.java,1.19,1.20

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 05 Oct 2009 13:05:50 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MunGA-0006ab-1C@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv25308/src/org/w3c/unicorn

Modified Files:
	Framework.java 
Log Message:
new VelocityTool added to contexts for floats operations: MathTool

Index: Framework.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/Framework.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- Framework.java	5 Oct 2009 12:12:34 -0000	1.19
+++ Framework.java	5 Oct 2009 13:05:47 -0000	1.20
@@ -30,6 +30,7 @@
 import org.apache.velocity.app.Velocity;
 import org.apache.velocity.app.VelocityEngine;
 import org.apache.velocity.tools.generic.EscapeTool;
+import org.apache.velocity.tools.generic.MathTool;
 import org.w3c.unicorn.action.LanguageAction;
 import org.w3c.unicorn.contract.Observer;
 import org.w3c.unicorn.contract.WADLUnmarshaller;
@@ -486,6 +487,7 @@
 		    	context.put((String) key, langProps.get(key));
 		    }
 			context.put("esc", new EscapeTool());
+			context.put("math", new MathTool());
 			context.put("tasklist", mapOfTask);
 			context.put("param_prefix", Property.get("UNICORN_PARAMETER_PREFIX"));
 			context.put("languages", languages);
Received on Monday, 5 October 2009 13:05:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC