News for hackers. Stuff that matters.
Re:Agility.js - Javascript MVC for the "write less, do more"... by tommoor on Friday July 22, 2011 @02:53PM (#2794701)
Not liking all that html/js mixed together in every single example...

Each to their own! :-)

Re:Agility.js - Javascript MVC for the "write less, do more"... by arturadib on Friday July 22, 2011 @03:42PM (#2794910)
Hi there, that's actually something I like about Agility, but I will soon add support for HTML templates outside of JS objects.

PS: You can already skip in-object CSS.

Re:Agility.js - Javascript MVC for the "write less, do more"... by bobbywilson0 on Friday July 22, 2011 @04:34PM (#2795076)
I'm interested in your preference for HTML in JavaScript, what is your rationale?
Re:Agility.js - Javascript MVC for the "write less, do more"... by arturadib on Friday July 22, 2011 @04:45PM (#2795120)
First, I don't have to keep looking for ids/classes across multiple files when I'm maintaining/modifying an object. This makes maintaining an object that much easier.

Also, because Agility allows me to refer to the root element of a view as the selector "&", I don't have to worry about maintaining that additional id/class. This becomes especially useful when you have many MVC objects (as most projects do), each with their own root element. Suddenly you have eliminated dozens of unnecessary ids/classes.