botanicus / rango

Rango is ultralightweight, ultracustomizable, ultracool web framework inspired by Django.
http://101ideas.cz
MIT License
221 stars 9 forks source link

Rewrite generic views layer #125

Closed botanicus closed 14 years ago

botanicus commented 14 years ago

It's too bloody magic and it's not good idea to use instance_exec, because then I can't use block and it evaluates the block every time in different namespace which is bad.

However there is the issue with the block for lambda:

Rango::GV.define do |request, response| # or whatever ... so how to integrate it into controller when we are using include Rango::GV ?
  # etc
end

Also there should be one model for one generic view, so I don't have to include the whole Rango::GV if I want to customize something.

botanicus commented 14 years ago

Done, I'm going to document it on the wiki soon.