hi chris, thanks for the response. 
 
jsonT looks cool, but in my case it's absolutely oversized. and by the way -
it's not jQuery.
anyway, i think i could use both, jörns newly created plugin as well as
jsonT - but i prefer the jQuery way, because i guess it's much smaller.
 
so jörn, if you can release your plugin it would be perfect and i will give
it a try.
 
regards, steff


  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Domigan
Sent: Tuesday, February 27, 2007 10:10 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Q: best way to create dynamic content?


You should check out jsonT (http://goessner.net/articles/jsont/)

It lets you transform ordinary javascript objects in HTML painlessly. So you
could do:

#myAnchor.append( 
  jsonT(
    { id:1, class:3 },
    { self: "<div id='{id}' class='{class}'></div>" }
  )
);


It supports really complex transformations, with functions etc. Anyways
check it out! 

Chris


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to