From: <ke...@us...> - 2003-06-03 05:21:54
|
Update of /cvsroot/webmacro/webmacro/src/org/webmacro/util In directory sc8-pr-cvs1:/tmp/cvs-serv16403/org/webmacro/util Added Files: Eval.java Log Message: Provides a WMScript function, $eval(), that does nothing but provide a holder that allows an expression to be evaluated and expanded into the template. --- NEW FILE: Eval.java --- package org.webmacro.util; /* * Eval.java - static class with one method eval which just returns its * argument. This is a workaround for a WebMacro syntax issue, where an * expression isn't recognized properly outside of a directive or method call. * The eval() function can be configured in the WebMacro.properties file, e.g.: * functions.eval=org.webmacro.util.Eval.eval * * Created on May 6, 2003, 12:51 AM */ /** * * @author Keats */ public class Eval { /** Private constructor for a static class */ private Eval() { } static public Object eval(Object o){ return o; } } |