Hi Michael,

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

> ...1. would it be better to produce output like:
> <p class="
> document.write(item.color);
> "\">"
> document.write(item.text);
> </p>
> So that e.g. search engines could index the static parts?...

Can you give a more complete example? The above is not valid
html/javascript code, I see what you mean but I'm not sure exactly how
you envision it.

> ...2. Having the same templating language on client and server is nice, but
> maybe different delimiters would be a good idea. If the same ones are used
> we cannot combine server-side and client-side parts in one script....

Do you have an example use case for mixing server-side and client-side
templating? I agree that that might be cool, but the downside is the
possible confusion with different sets of delimiters. So I'd like to
make sure this is not YAGNI.

> ...btw: reminded me of the TrimPath stuff now at
> http://code.google.com/p/trimpath/wiki/JavaScriptTemplates...

Interesting, thanks.

-Bertrand

Reply via email to