[ZPT] preventing escaping of less-than and greater-thans in tal:replace

Charlie Clark charlie at begeistert.org
Mon Aug 14 14:59:28 EDT 2006


Am 14.08.2006 um 20:36 schrieb Don Morrison:

> I refactored some...
>
>    <select name="task" tabindex="2" onchange="ifnew_showdiv 
> ('new_task')">
>
>      <option tal:repeat="record task_list"
>              tal:attributes="label record/name; value record/id"  
> tal:content="record/name">
>      Example Option
>      </option>
>
>      <option label="New" value="New">New</option>
>    </select>

No need for the <div> to loop and no need to wrap you variable names  
in cryptic abbreviations.

Charlie

Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226





More information about the ZPT mailing list