Haha, well done :) Small rectification: Camping also allows multiple views per controller
2008/5/15 John Beppu <[EMAIL PROTECTED]>: > Hey Campers, > > I liked Camping so much that I had to "port" it to Perl. My framework is > called Squatting (as in http://en.wikipedia.org/wiki/Squatting), and you can > get it from the following places: > > http://search.cpan.org/dist/Squatting/ > > http://github.com/beppu/squatting/tree/master > > It's not a straight port of the Camping code, because Camping uses some > weird Ruby idioms that don't translate well to Perl. However, I tried to > make the API retain the feel of Camping as best as I could under the > circumstances. > > With that said, I did make a few significant deviations from Camping that > some of you may find interesting. > > I used Continuity (http://continuity.tlt42.org/) as my foundation. This > gives me the ability to implement RESTless controllers which will come in > handy when I want to start playing with COMET. > I let multiple views coexist. (Let's say you wanted to make a mobile > version of your site. I'd like to treat that as a separate view that uses > the same controllers.) > Instead of defining your controllers as classes that inherit from whatever > it is that R returns, you define your controllers as objects. (I'm doing > poor man's prototype-based OO as you'll see if you dig into the code.) > Similarly, views are objects, too. > > (All the JavaScript I've been writing has clearly warped my mind. I'm like, > "Screw classes!". That was my attitude in college, too... which is > probably why I didn't graduate, but I digress.) > > Anyway, take a look, and amuse yourself. > > --beppu > > Disclaimer: This is alpha level code, so don't be surprised if the API > mutates a little. > > > > _______________________________________________ > Camping-list mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/camping-list > _______________________________________________ Camping-list mailing list [email protected] http://rubyforge.org/mailman/listinfo/camping-list

