Back to index page Core features overview

Fry uses simplistic notation attempting to ease the most tedious language constructs. The usual DOM element node is wrapped inside the extensible ACNode object providing interface to most common node operation techniques. Calls to such operations result in the original object, therefore you can use multiple calls on one line. Each operation comes with the minimalistic name inherited from its original purpose. Even though it may seem a little bit difficult at first, it's actually very easy to learn and use. Shortcuts such as a(ppend node), p(arent node), s(tyle), w(idth) and so on work in two accessor modes. If you call the method without parameters, it's usually a getter, while passing arguments results in setter being called. The sweet thing is that in both cases the object is returned for another pipe method to call (eg. var node = $('node-id').w(200).h(100) would result in the contens of the node object being stored in the variable node while concurrently resizing the node width and height). Since it's implemented using the open ACNode interface, one can easily extend it and add any number of convenient methods to the node and use it as some kind of macro language of its own. In Fry this is how the drag and drop interfaces are bundled into default nodes, resulting in comfort way of working with draggable/droppable nodes.

Jump to:



		
A test DIV node...