org.melati.template.velocity
Class WebMacroConverter

java.lang.Object
  extended by org.melati.template.velocity.WebMacroConverter

public final class WebMacroConverter
extends java.lang.Object

Converter from WebMacro templates to Velocity templates. Note that this does not succeed for modern WebMacro syntax which uses optionional #begin in #foreach.

Author:
Tim Pizey based on work by Jason van Zyl and Tim Joyce.

Field Summary
static java.lang.String[] regExps
          The regexes to use for substition.
 
Method Summary
static java.io.InputStream convert(java.io.InputStream in)
          Do the conversion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

regExps

public static final java.lang.String[] regExps
The regexes to use for substition. The regexes come in pairs. The first is the string to match, the second is the substitution to make.

Method Detail

convert

public static java.io.InputStream convert(java.io.InputStream in)
Do the conversion.

Parameters:
in -
Returns:
the InputStream with substitutions applied


Copyright © 2000-2008 PanEris. All Rights Reserved.