Using JQuery templating, How to call handlers before and after rendering of every element.

Using JQuery templating, How to call handlers before and after rendering of every element.

Hi,

Inside the template i am having one table, there are five "td" elements but only 3 "td" elements only filled using database object. But i want the handler before and after rendering of all the five "td" elements. What can i do? How do i get any idea??

Previously i used MicrosoftAjaxtemplates in that i used like following

<td sys:codebefore="before()" sys:codeafter="after()>
</td>
<td sys:codebefore="before()" sys:codeafter="after()>{{Name}}
</td>
I just called "before" function before rendering the td element and called "after" function. Like this I need. Any idea??

Thanks in advance.