You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by jo...@locus.apache.org on 2000/08/26 20:49:14 UTC
cvs commit: jakarta-velocity/src/java/org/apache/velocity Template.java
jon 00/08/26 11:49:14
Modified: src/java/org/apache/velocity Template.java
Log:
alternate constructor
Revision Changes Path
1.6 +6 -0 jakarta-velocity/src/java/org/apache/velocity/Template.java
Index: Template.java
===================================================================
RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/Template.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Template.java 2000/08/26 18:46:00 1.5
+++ Template.java 2000/08/26 18:49:14 1.6
@@ -92,6 +92,12 @@
this.template = template;
}
+ public Template(String template, Context context)
+ {
+ this.template = template;
+ setContext(context);
+ }
+
public Context getContext()
{
return context;