You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org> on 2007/03/08 01:18:29 UTC
[jira] Closed: (VELOCITY-64) disgard whitespace between consecutive
velocity calls
[ https://issues.apache.org/jira/browse/VELOCITY-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henning Schmiedehausen closed VELOCITY-64.
------------------------------------------
> disgard whitespace between consecutive velocity calls
> -----------------------------------------------------
>
> Key: VELOCITY-64
> URL: https://issues.apache.org/jira/browse/VELOCITY-64
> Project: Velocity
> Issue Type: Improvement
> Components: Build
> Affects Versions: 1.2
> Environment: Operating System: other
> Platform: All
> Reporter: William Bajzek
> Priority: Minor
>
> I've been using velocity for a few months now, and I like it quite a bit, but
> I've been bothered by one minor but not insignificant problem.
> Often, I need to use velocity calls inside templates to perform logic and set
> up data structures... For example, to define the menu structure of a website in
> a template for use in another template to be parsed during the same merge()
> call, in order to keep such things that are irrelevant to the java code outside
> of it so it can be modified without rebuilding.
> The problem is that whitespace used outside the velocity calls (for readability
> and necessity) ends up in the output. In practice, the resulting html can
> contain many kilobytes of irrelevant whitespace which the browsers will need to
> download. I would like to see a feature for omitting whitespace between
> consecutive velocity calls, or something equivalent to accomplish this.
> Thanks
--
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