Return-Path: Delivered-To: apmail-jakarta-velocity-dev-archive@www.apache.org Received: (qmail 10068 invoked from network); 4 Jan 2006 05:54:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jan 2006 05:54:23 -0000 Received: (qmail 89881 invoked by uid 500); 4 Jan 2006 05:54:23 -0000 Delivered-To: apmail-jakarta-velocity-dev-archive@jakarta.apache.org Received: (qmail 89670 invoked by uid 500); 4 Jan 2006 05:54:22 -0000 Mailing-List: contact velocity-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Velocity Developers List" Reply-To: "Velocity Developers List" Delivered-To: mailing list velocity-dev@jakarta.apache.org Received: (qmail 89659 invoked by uid 99); 4 Jan 2006 05:54:22 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2006 21:54:22 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 5CE8CE0 for ; Wed, 4 Jan 2006 06:54:01 +0100 (CET) Message-ID: <268826111.1136354041378.JavaMail.jira@ajax.apache.org> Date: Wed, 4 Jan 2006 06:54:01 +0100 (CET) From: "Will Glass-Husain (JIRA)" To: velocity-dev@jakarta.apache.org Subject: [jira] Updated: (VELOCITY-362) can't load macros in file loaded with #parse Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/VELOCITY-362?page=all ] Will Glass-Husain updated VELOCITY-362: --------------------------------------- Bugzilla Id: (was: 33750) Fix Version: 1.6 (was: 1.5) This is trickier than it seems. See my thoughts at http://wiki.apache.org/jakarta-velocity/MacroIssues Moving to v1.6 > can't load macros in file loaded with #parse > -------------------------------------------- > > Key: VELOCITY-362 > URL: http://issues.apache.org/jira/browse/VELOCITY-362 > Project: Velocity > Type: Bug > Components: Source > Versions: 1.4 > Environment: Operating System: All > Platform: All > Reporter: whxbb > Priority: Minor > Fix For: 1.6 > > I think this is a big bug. I've used velocity in my projects, erveything is ok > but this. i want to know it's this problem will be resolved in next version? if > it's not, i have to abandon velocity. > the bug is : > from doc: > This is important to remember if you try to #parse() a template containing > inline #macro() directives. Because the #parse() happens at runtime, and the > parser decides if a VM-looking element in the template is a VM at parsetime, > #parse()-ing a set of VM declarations won't work as expected. To get around > this, simply use the velocimacro.library facility to have Velocity load your > VMs at startup. -- 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