velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Bernhard <>
Subject How to include only a part of a file?
Date Mon, 12 Nov 2007 16:39:53 GMT

How to include only a part of a file into another one with Velocity and this
to be done in the template (so not from Java code).

With FreeMarker  I would do the following:
          <template:include src="../mypages/items.html"
                        elements="/html/body/*[@class='aItem' and

How to achieve the above in a Velocity template?
With the #include macro syntax seems to allow the inclusion of an entire
file only :(.

View this message in context:
Sent from the Velocity - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message