I like their approach: http://mustache.github.com/ If I'm not mistaken, new Twitter desktop GUI uses it. (Albeit in an ugly fashion.)
<http://mustache.github.com/>I've been ruminating on a project to (1) rewrite a (jQuery* replacement) JavaScript abstraction framework under normal copyright or a Creative Commons Zero license (mid-field) (jQuery is MIT licensed - and I'd prefer to work under public domain / unlicense conditions - thought I might have to give it up) (2) write a CSS-abstraction framework under a (ditto)-license (3) use the two new libraries above to write a WYSIWYG markup generator (running on the client-side) (4) time permitting (which probably won't be the case) write a server-side framework to compliment the (client-side) mark-up generator. (I actually started thinking about this particular social issue here, so this is the grand finale, if ever resources permit; meanwhile I have to divide my time between more immediate social work like so, and stuff on longer civilisational timelines like machine intelligence :P.) http://jerng.blogspot.com/2011/03/week-12-is-go.html and Ctrl+F for 'CSS' for more (disparate) notes about this. Jerng --- Yang Jerng HWA +6 016 235 2931 Kuala Lumpur (GMT +8:00) On 24 March 2011 10:38, Mohd Izhar Firdaus Ismail <[email protected]>wrote: > in this past few months i've been working with martijn fassen (grok/libxml) > and > guido wesdorp on a project for martijn's client. > > Along the way, guido and us developed a set of library for doing ajax > view rendering based on json objects passed from the server to the > browser. > > https://bitbucket.org/obviel/obviel > > example of simple usage: > > if in in the js file: > ----------------------------------------------- > obviel.view({ > iface: 'my-view', > html: '<button>Click Me</button>', > render: function (el, obj) { > $('button', el).click(function (event) { > alert(obj.message); > }; > }; > }); > > $(document).ready(function() { > var url = 'http://path/to/server/json'; > $('#container').render(url); > }); > ---------------------------------------------- > > and the json returned by 'http://path/to/server/json' > > ---------------------------------------------- > {'ifaces': ['my-view'], > 'message': 'Hello World'} > ---------------------------------------------- > > will render a button which when you click it will popup an alert with > 'Hello World' message in it > > There will be a few days sprint with martijn around may to refactor > this, write docs and setup a proper home for it. The sprint will > possibly be at singapore at martijn's in-law's place. those who are > interested are invited to join in :D > > > -- > Mohd Izhar Firdaus Bin Ismail / KageSenshi > Inigo Consulting (FOSS/Plone Development, Training & Services) > http://www.inigo-tech.com > Fedora Malaysia Contributor & Ambassador > http://blog.kagesenshi.org > 92C2 B295 B40B B3DC 6866 5011 5BD2 584A 8A5D 7331 > _______________________________________________ > general mailing list > [email protected] > http://lists.foss.org.my/mailman/listinfo/general >
_______________________________________________ general mailing list [email protected] http://lists.foss.org.my/mailman/listinfo/general
