@srshti @steveklabnik Can you map specific decorators to views? I had thought perhaps wrongly that 1 model class = 1 decorator class?
-
-
Replying to @elight1 reply 0 retweets 0 likes
-
Replying to @steveklabnik
@steveklabnik@srshti I’ve always seen view models as translation of the model for a specific view. So 1 model to 0…* view models and views.1 reply 0 retweets 0 likes -
Replying to @steveklabnik
@steveklabnik@srshti otherwise they have responsibilities to serve multiple views . They do too much.2 replies 0 retweets 0 likes -
Replying to @elight2 replies 0 retweets 0 likes
-
Replying to @steveklabnik
@steveklabnik@elight@srshti Currently, controllers are controller+view and views are template+view. It's ugly. Draper helps.1 reply 1 retweet 0 likes -
Replying to @ReinH
@ReinH@steveklabnik@elight So, you’d want to use draper with a templating library e.g. mustache?2 replies 0 retweets 0 likes -
Replying to @srshti
@srshti@steveklabnik@elight Yes. IMO the Draper object is the resource, the template is the representation.2 replies 0 retweets 0 likes -
Replying to @ReinH
@ReinH@steveklabnik@elight Somehow (stupidly) I never really considered the two together. I’m going to have to think about this now.1 reply 0 retweets 0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.