You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Brad Rice (Updated) (JIRA)" <de...@velocity.apache.org> on 2011/11/28 16:21:41 UTC
[jira] [Updated] (VELTOOLS-147) Website Documenting Generic Tools
list is missing Viewtool name and link to document
[ https://issues.apache.org/jira/browse/VELTOOLS-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brad Rice updated VELTOOLS-147:
-------------------------------
Attachment: Apache Velocity Tools - Overview.jpg
> Website Documenting Generic Tools list is missing Viewtool name and link to document
> ------------------------------------------------------------------------------------
>
> Key: VELTOOLS-147
> URL: https://issues.apache.org/jira/browse/VELTOOLS-147
> Project: Velocity Tools
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 1.4
> Environment: Mac OS X Leopard
> Reporter: Brad Rice
> Priority: Minor
> Attachments: Apache Velocity Tools - Overview.jpg
>
>
> When I go to this page to get information about the Generic Tools: http://velocity.apache.org/tools/devel/generic.html and I look at the bulleted list, the name of the tool isn't showing, nor is there a link to the tool documentation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Re: Imbed Other Velocity Templates within a velocity template
Posted by Sergiu Dumitriu <se...@xwiki.com>.
On 11/29/2011 08:59 AM, Niall Loughnane wrote:
> Hi,
>
>
>
> Is there a way in Velocity Templates to imbed other velocity templates?
>
>
>
> I have the following velocity template "mypage_html.vm",
> "
> <html>
> <body>
> text to be displayed
>
> </body>
>
> </html>
>
> "
>
>
>
> For reusability purposes I want to have 2 base velocity templates:
>
> "mypage_html_header.vm":
> "
> <html>
>
> <body>
> "
>
> "mypage_html_footer.vm":
>
> "
> </body>
>
>
> </html>
> "
>
>
>
> Then to refactor "mypage_html.vm" to:
> "
> #include mypage_html_header.vm
> text to be displayed
>
>
> #include mypage_html_footer.vm
>
> "
>
>
>
> Is this possible in Velocity Templates?
>
Yes, see
http://velocity.apache.org/engine/releases/velocity-1.7/vtl-reference-guide.html#aparse_-_Renders_a_local_template_that_is_parsed_by_Velocity
#parse('mypage_html_header.vm')
text to be displayed
#parse('mypage_html_footer.vm')
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Imbed Other Velocity Templates within a velocity template
Posted by Niall Loughnane <ni...@yahoo.com>.
Hi,
Is there a way in Velocity Templates to imbed other velocity templates?
I have the following velocity template "mypage_html.vm",
"
<html>
<body>
text to be displayed
</body>
</html>
"
For reusability purposes I want to have 2 base velocity templates:
"mypage_html_header.vm":
"
<html>
<body>
"
"mypage_html_footer.vm":
"
</body>
</html>
"
Then to refactor "mypage_html.vm" to:
"
#include mypage_html_header.vm
text to be displayed
#include mypage_html_footer.vm
"
Is this possible in Velocity Templates?
Thanks in Advance,
Niall