2011/9/24 Bartosz Dziewoński :
> So, are we reverting it? It's still in the latest GitHub commit.
I've reverted it.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
So, are we reverting it? It's still in the latest GitHub commit.
(If it was unclear, I agree with Jenna - while certainly neat, this should go.)
-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/
Being able to name controllers definitely makes it more valuable. If I had
to criticize Sinatra and its clones, I would criticize their lack of named
controllers. It's difficult to write URL generation functions without them.
I've only seen one Sinatra clone (Slim in php) that allows controllers
I vote revert. This is just sinatra - I feel it's important camping maintains
the cleanliness and clarity of functionality given to us by using simple
classes. It's something we have which AFAIK no other ruby web framework does -
you know exactly how it works, because it's just a class.
On 26/
On Aug 25, 2011 10:54 PM, "John Beppu" wrote:
>
> If I wanted that notation, I'd just use Sinatra. ;)
>
> Like Bartosz, I like having named controllers so that I can pass them to
R() when generating links.
Does it make it better that you can name them too?
Index = get "/" do
...
end
Se
On Thu, Aug 25, 2011 at 21:28, David Susco wrote:
> Would you have to write the RE for every declaration?
>
> ie...
>
> module App::Controllers
> get '/(.*)' do |name|
> "Hello #{name}"
> end
>
> put '/(.*)' do |name|
> "Hello #{name}"
> end
> end
That wouldn't work. Camping wou
If I wanted that notation, I'd just use Sinatra. ;)
Like Bartosz, I like having named controllers so that I can pass them to R()
when generating links.
On Thu, Aug 25, 2011 at 10:20 AM, Magnus Holm wrote:
> I just pushed a new feature to Camping: Simple controllers.
>
> module App::Controller
Would you have to write the RE for every declaration?
ie...
module App::Controllers
get '/(.*)' do |name|
"Hello #{name}"
end
put '/(.*)' do |name|
"Hello #{name}"
end
end
Dave
On Thu, Aug 25, 2011 at 1:20 PM, Magnus Holm wrote:
> I just pushed a new feature to Camping
Personally I probably won't be using it, I like having class names
around and being able to link to them with R(). (I change my paths
often.) Certainly won't hurt to have it, for really small apps.
-- Matma Rex
___
Camping-list mailing list
Camping-list@
I just pushed a new feature to Camping: Simple controllers.
module App::Controllers
get '/(.*)' do |name|
"Hello #{name}"
end
end
What do you think? Useful? Or should I revert it? It currently costs
us 87 bytes.
// Magnus Holm
___
Cam
10 matches
Mail list logo