Return-Path: Delivered-To: apmail-jakarta-velocity-user-archive@www.apache.org Received: (qmail 43997 invoked from network); 11 Apr 2005 11:00:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Apr 2005 11:00:26 -0000 Received: (qmail 16204 invoked by uid 500); 11 Apr 2005 11:00:20 -0000 Delivered-To: apmail-jakarta-velocity-user-archive@jakarta.apache.org Received: (qmail 16182 invoked by uid 500); 11 Apr 2005 11:00:20 -0000 Mailing-List: contact velocity-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Velocity Users List" Reply-To: "Velocity Users List" Delivered-To: mailing list velocity-user@jakarta.apache.org Received: (qmail 16168 invoked by uid 99); 11 Apr 2005 11:00:20 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail01.pironet-ndh.com (HELO mail02.pironet-ndh.com) (194.64.31.10) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 11 Apr 2005 04:00:19 -0700 Received: from exchange.pironet-ndh.local (stream-q0.ndh.net [195.94.90.190]) by mail02.pironet-ndh.com (Postfix) with ESMTP id 8D8B649DBFC for ; Mon, 11 Apr 2005 12:58:44 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: Parser and Context Date: Mon, 11 Apr 2005 12:58:44 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Parser and Context Thread-Index: AcU+hQtXUI3t3essTOSh21s/iuQr0gAACWtw From: "Matthias Wessendorf" To: "Velocity Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Markus, thanks for your input. But this is a use case I don't want :) I need *dynamic* including/parsing of templates. >From my "database" I got location from concret template, that I will use through the context.. Any idea? -Matthias -----Urspr=FCngliche Nachricht----- Von: Markus [mailto:e9904146@student.tuwien.ac.at] Gesendet: Montag, 11. April 2005 12:56 An: Velocity Users List Betreff: AW: Parser and Context Hi, could this be an idea? ctx.put("navigation", "http://foo/"); then ..... #parse("navigation.vm") and in the template named "navigation.vm" you have: A LINK Markus > -----Urspr=FCngliche Nachricht----- > Von: Matthias Wessendorf [mailto:mwessendorf@pironet-ndh.com] > Gesendet: Montag, 11. April 2005 11:12 > An: velocity-user@jakarta.apache.org > Betreff: Parser and Context > > > Hi, > > if I do something like with Context object, all is fine: > > ctx.put("navigation","A LINK"); > > > But what I really want is: > > ctx.put("navigation","#parse (\"navigation.vm\")"); > > Because I want in my *master* template something like: > > > > > ... > > > So that I have no *hard* coded parse inside that template, > since navigation page can be different by some use cases. > > Any idea for something like that? > > thanks, > Matthias > > --------------------------------------------------------------------- > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: velocity-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: velocity-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: velocity-user-help@jakarta.apache.org
$navigation