[prev in list] [next in list] [prev in thread] [next in thread]
List: velocity-dev
Subject: [jira] Resolved: (VELOCITY-742) Easily Add/Remove/Replace
From: "Nathan Bubna (JIRA)" <dev () velocity ! apache ! org>
Date: 2009-12-31 18:37:29
Message-ID: 93331254.1262284649407.JavaMail.jira () brutus ! apache ! org
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/VELOCITY-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Nathan Bubna resolved VELOCITY-742.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.7
Ok, it's in the trunk. I'll try and port today's changes to 2.x also.
> Easily Add/Remove/Replace Directives Without Cracking Open Velocity Jar
> -----------------------------------------------------------------------
>
> Key: VELOCITY-742
> URL: https://issues.apache.org/jira/browse/VELOCITY-742
> Project: Velocity
> Issue Type: New Feature
> Components: Engine
> Affects Versions: 1.6.2
> Reporter: Tim White
> Priority: Minor
> Fix For: 1.7
>
> Attachments: velocity-742.patch
>
>
> There are two use cases that I have for this issue:
> 1) We need to turn off #include in order to parse .html files that include SSI \
> directives: <!--#include virtual=""--> (we always use #parse in our world, so no \
> loss for #include going away) 2) We need to supply our own version of #parse that \
> contains the development hooks that I described in a different issue. Right now, \
> the only crisp way to do is is to crack open the velocity .jar and make these \
> changes, which is very risky, because future developers may upgrade to new versions \
> of Velocity and not realize that there are customizations and/or not understand how \
> to remake them....not to mention in a shared-classpath environment, we don't always \
> have control over which copy of the Velocity .jar we're using. Ideally, there would \
> be config options like this: directive_remove ("#parse", "#include")
> directive_add ("#parse", "com.qwest.velocity.directives.Parse")
> Thanks!
> Tim
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic