[
https://issues.apache.org/jira/browse/VELOCITY-448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henning Schmiedehausen closed VELOCITY-448.
-------------------------------------------
> Can't define macro in separate file and use it in another file.
> ---------------------------------------------------------------
>
> Key: VELOCITY-448
> URL: https://issues.apache.org/jira/browse/VELOCITY-448
> Project: Velocity
> Issue Type: Improvement
> Environment: WindowsXP
> Reporter: Colbert Philippe
> Fix For: 1.6
>
>
> I my first file called "myDefinition.vm" , I difined a trivial macro
> #macro ( myMycro $p1 $p2)
> $p1 $p2
> #end
> In my second file, I parse and call my macro:
> #parse( myDefinition.vm")
> #myMacro( "apple" "orange)
> The result is always a single line:
> #myMacro( "apple" "orange)
> Velocity does not recognize the definition of my macro. I tried putting the
> macro is the same file and that works. But when the definition from another
> file does not seem to work.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]