I would create my own component that would output the "<#= " " #>" text around it's body:

void beginRender( MarkupWriter writer ) {writer.raw("<#= ");}
void afterRender( MarkupWriter writer ) {writer.raw(" #>");}



then you can use that component anywhere in your templates

<tr>
<td id="t2Col1Text"><t:esc>data.yesterday.totalImpressions</t:esc></td>
</tr>



On 11/9/10 3:19 PM, Thiago H. de Paula Figueiredo wrote:
On Tue, 09 Nov 2010 20:08:04 -0200, hese <1024h...@gmail.com> wrote:

Hi,

Hi!

I am using html templates in my TML file...something like the below, to be used with jQuery and other libraries to dynamically fill values easily.
<tr>
<td id="t2Col1Text"><#= data.yesterday.totalImpressions #></td>
</tr>

Tapestry templates must be well-formed XML and it's parsed by an XML parser, so you need to find another solution. Maybe you'll need to use the OutputRaw component.

By the way, using <#= inside HTML seems very, very hacky to my taste.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to