[ZPT] Content/Presentation Separation

Brian Lalor blalor+dated+1020011009.848b22@ithacabands.org
Tue, 23 Apr 2002 09:23:27 -0700 (MST)


On Tue, 23 Apr 2002, Harry Wilkinson wrote:

> Defining how you want it presented (like in your print statement there) is 
> what ZPTs are for.  So, yes, use ZPTs for that.
> 
> Say you have a script that returns the value of resRebatePrice, called 
> getResRebatePrice.... to present this information in a ZPT-ish way, you could 
> write this in the ZPT:
> 
> <div tal:replace="string:Quantity Special: Each box is only 
> ${here/getResRebatePrice} a box!"> your formatted string will replace this 
> text </div>

Let's say I want to do a product presentation page of some type; the 
product id is passed as a param on the URL (via GET).  How would I 
instantiate a product object and then show individual properties of that 
object?  <foo tal:define /> or somesuch?

--
Brian Lalor
blalor@ithacabands.org