org.zkoss.ztl.util
Class ZulGenerator
java.lang.Object
org.zkoss.ztl.util.ZulGenerator
public class ZulGenerator
- extends java.lang.Object
The ZUL generator that generates the ztl from zul file . help us to build ztl
faster from other zul
- Author:
- TonyQ
Method Summary |
static void |
fillTemplate(java.lang.String outputFile,
org.apache.velocity.VelocityContext context,
java.lang.String templateName)
fill the context to template , and output to outputFile. |
void |
generator(java.lang.String srcFilePath,
java.lang.String distFilePath,
java.util.HashMap args)
we will use this to generator a ztl from a zul . |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZulGenerator
public ZulGenerator()
generator
public void generator(java.lang.String srcFilePath,
java.lang.String distFilePath,
java.util.HashMap args)
- we will use this to generator a ztl from a zul .
- Parameters:
srcFilePath
- distFilePath
-
fillTemplate
public static void fillTemplate(java.lang.String outputFile,
org.apache.velocity.VelocityContext context,
java.lang.String templateName)
throws java.lang.Exception
- fill the context to template , and output to outputFile.
- Parameters:
outputFile
- context
- templateName
-
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
java.io.FileNotFoundException
java.lang.Exception
main
public static void main(java.lang.String[] args)
Copyright © 2014. All Rights Reserved.