You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <ji...@apache.org> on 2016/07/18 21:24:21 UTC
[jira] [Resolved] (VELOCITY-799) Optionally add context to itself
[ https://issues.apache.org/jira/browse/VELOCITY-799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson resolved VELOCITY-799.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.x
Fixed in 2.x.
The new configuration property context.autoreference.key allows to specify the key under which the context will be put in itself.
> Optionally add context to itself
> --------------------------------
>
> Key: VELOCITY-799
> URL: https://issues.apache.org/jira/browse/VELOCITY-799
> Project: Velocity
> Issue Type: Improvement
> Reporter: Sebb
> Assignee: Claude Brisson
> Fix For: 2.x
>
>
> For debugging scripts, it would sometimes be useful to have access to the context within a VM script.
> For example, one could then print out all the variables that are defined in the context.
> The suggestion is to enable this via a properties file or a system property.
> If the property is defined, its value would be used as the name of the variable holding the context.
> e.g. -Dvelocity.context.variable=ctx
> Obviously feel free to choose a better property name.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org