| java.lang.Object org.apache.velocity.convert.WebMacro
WebMacro | public class WebMacro (Code) | | This class will convert a WebMacro template to
a Velocity template. Uses the ORO Regexp package to do the
rewrites. Note, it isn't 100% perfect, but will definitely get
you about 99.99% of the way to a converted system. Please
see the website documentation for more information on how to use
this class.
author: Jason van Zyl author: Daniel Rall version: $Id: WebMacro.java 463298 2006-10-12 16:10:32Z henning $ |
perLineREs | protected static String[] perLineREs(Code) | | The regexes to use for line by line substition. The regexes
come in pairs. The first is the string to match, the second is
the substitution to make.
|
convert | public void convert(String target)(Code) | | Iterate through the set of find/replace regexes
that will convert a given WM template to a VM template
Parameters: target - |
convertTemplate | public String convertTemplate(String template)(Code) | | Apply find/replace regexes to our WM template
Parameters: template - Returns the template with all regexprs applied. |
main | public static void main(String[] args)(Code) | | Main hook for the conversion process.
Parameters: args - |
|
|