public interface Velocity
velocity().merge("/a/tmpl.vm", workspace().getFile("run.txt"), new HashMap() {{ put("cfg", this); }} );
Modifier and Type | Method and Description |
---|---|
void |
merge(java.lang.String tmpl,
java.io.File out)
merges a template (tmpl) into the file (out)
|
void |
merge(java.lang.String tmpl,
java.io.File out,
java.util.Map<java.lang.String,java.lang.Object> properties)
merges a template (tmpl) into the file (out)
|
void merge(java.lang.String tmpl, java.io.File out) throws java.io.IOException
tmpl
- the input template. (in service resource path)out
- the output file.java.io.IOException
- if merging failsvoid merge(java.lang.String tmpl, java.io.File out, java.util.Map<java.lang.String,java.lang.Object> properties) throws java.io.IOException
tmpl
- the input template. (in service resource path)out
- the output file.properties
- map of objects for property resolution.java.io.IOException
- if merging fails(c) 2012-2022, OMSLab, Colorado State University.