Using JQuery templating, How do i pass the current rendering element as an argument in handler

Using JQuery templating, How do i pass the current rendering element as an argument in handler

Hi,

I need to pass the handler before and after rendering every element inside the template. while passing i need to send the dataitem and also an element because user can manipulate the element attributes. Currently i am using MS Ajax template in that, i am using like following,


<td sys:codebefore="before($element,$dataItem)" sys:codeafter="after($element,$dataItem)>
</td>
<td sys:codebefore="before($element,$dataItem)" sys:codeafter="after($element,$dataItem)>{{Name}}
</td>

here $element will refer the td element. but in jquery templating no scope for element inside jquery.

Like the above i need equivalent in JQuery Templating. Waiting for your reply..

Please let me know if question is not clear.

Thanks in advance,
R. Solaiappan.