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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20080514/a4de0cf4/attachment.html>
Haha, well done :) Small rectification: Camping also allows multiple views per controller 2008/5/15 John Beppu <john.beppu at gmail.com>:> 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 > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >
On 5/15/08, zimbatm <zimbatm at oree.ch> wrote:> > Haha, well done :) > > Small rectification: Camping also allows multiple views per controllerReally? How do you set up multiple views for a Camping app? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20080515/8af1500b/attachment.html>