aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/main/resources/org/apache/velocity
diff options
context:
space:
mode:
authorClaude Brisson <cbrisson@apache.org>2018-10-15 13:08:41 +0000
committerClaude Brisson <cbrisson@apache.org>2018-10-15 13:08:41 +0000
commitd0b749b76cfd4dd040c6d5e6274990fa858e50b0 (patch)
treec6dcd15050ec7b8b83f3cb4d5e4ebe28b5cd4ff2 /velocity-engine-core/src/main/resources/org/apache/velocity
parenta684e7eff5be127e100e9b43ac897ee414ca8937 (diff)
downloadapache-velocity-engine-d0b749b76cfd4dd040c6d5e6274990fa858e50b0.tar.gz
[VELOCITY-904] Added velocimacro.preserve.arguments.literals boolean flag (false by default) - if true, when printing null arguments, the macros will use the provided arguments literals
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1843909 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src/main/resources/org/apache/velocity')
-rw-r--r--velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties10
1 files changed, 10 insertions, 0 deletions
diff --git a/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties b/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties
index adf24744..ffc91fe0 100644
--- a/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties
+++ b/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties
@@ -132,6 +132,16 @@ velocimacro.arguments.strict = false
velocimacro.body.reference=bodyContent
# ----------------------------------------------------------------------------
+# VELOCIMACRO PRESERVE ARGUMENTS LITERALS
+# ----------------------------------------------------------------------------
+# if true, when a macro has to render a null or invalid argument reference
+# which is not quiet, it will print the provided literal reference instead
+# of the one found in the body of the macro
+# ----------------------------------------------------------------------------
+velocimacro.preserve.arguments.literals = false
+
+
+# ----------------------------------------------------------------------------
# STRICT REFERENCE MODE
# ----------------------------------------------------------------------------
# if true, will throw a MethodInvocationException for references