[EMAIL PROTECTED] writes:

> geirm       01/01/21 12:52:48
> 
>   Added:       src/java/org/apache/velocity/util FieldMethodizer.java
>   Log:
>   Small utility to automatically expose public static fields in a class for easy
>   access in a Velocity template.  See the code or javadoc for better documentation,
>   but the upshot... in Java :
>   
>      context.put( "runtime", new 
>FieldMethodizer("org.apache.velocity.runtime.Runtime");
>   
>   and in your template access the public static fields like you would in java:
>   
>      $runtime.RUNTIME_LOG_ERROR_STACKTRACE
>   
>   Allows access to public static fields only for safety.

Very nice!  Dealing with this has always been a PITA for WebMacro users.
-- 

Daniel Rall <[EMAIL PROTECTED]>

Reply via email to