You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Will Glass-Husain (JIRA)" <ji...@apache.org> on 2006/11/10 15:40:37 UTC

[jira] Commented: (VELOCITY-448) Can't define macro in separate file and use it in another file.

    [ http://issues.apache.org/jira/browse/VELOCITY-448?page=comments#action_12448752 ] 
            
Will Glass-Husain commented on VELOCITY-448:
--------------------------------------------

As discussed on the dev list, I see this as an important "todo" for 1.6.  I've reopened Velocity-362 as a reminder of this.

> Can't define macro in separate file and use it in another file.
> ---------------------------------------------------------------
>
>                 Key: VELOCITY-448
>                 URL: http://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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org