On Nov 29, 2007 5:32 PM, Michael Marth <[EMAIL PROTECTED]> wrote:

> ....I meant  to covert just the stuff within the <%%> brackets into
> document.write() and leave the rest untouched. So, your example would
> produce sthg like:
>
> <p class="<script>document.write(item.color)</script>">...

Which is not valid I'm afraid - doing so would require a client-side
library to process stuff like

  <p class="{item.color)">

That's not too hard though, that might be an option.

> >... Do you have an example use case for mixing server-side and client-side
> > templating? ...

> From the ever-popular blog example:
> A blog where the posts are filtered on the server-side (using some criteria
> like date, author, etc) but sorting is done on the client (so that a change
> of sorting criteria does not result in another request)....

Ok, I see the idea then.

-Bertrand

Reply via email to