jvanzyl 00/11/27 16:40:24
Modified: src/java/org/apache/velocity/runtime RuntimeConstants.java
Log:
- added properties for:
- maximum level of recursion allowed in the #parse directive.
- start/end tag for error message output when argument to #include directive
is incorrect. only string literals and references are allowed.
Revision Changes Path
1.5 +19 -0
jakarta-velocity/src/java/org/apache/velocity/runtime/RuntimeConstants.java
Index: RuntimeConstants.java
===================================================================
RCS file:
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/RuntimeConstants.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- RuntimeConstants.java 2000/11/27 03:57:04 1.4
+++ RuntimeConstants.java 2000/11/28 00:40:22 1.5
@@ -83,4 +83,23 @@
public static final String FILE_TEMPLATE_CACHE = "File.template.cache";
public static final String RUNTIME_LOG_REFERENCE_LOG_INVALID =
"runtime.log.reference.log_invalid";
+
+ /**
+ * Starting tag for error messages triggered by passing
+ * a parameter not allowed in the #include directive. Only
+ * string literals, and references are allowed.
+ */
+ public static String ERRORMSG_START = "include.output.errormsg.start";
+
+ /**
+ * Ending tag for error messages triggered by passing
+ * a parameter not allowed in the #include directive. Only
+ * string literals, and references are allowed.
+ */
+ public static String ERRORMSG_END = "include.output.errormsg.end";
+
+ /**
+ * Maximum recursion depth allowed for the #parse directive.
+ */
+ public static String PARSE_DIRECTIVE_MAXDEPTH = "parse_directive.maxdepth";
}