spine / spine-rails

Spine plugin for Rails
171 stars 38 forks source link

Extend controllers with handy view renderers #5

Closed dnagir closed 13 years ago

dnagir commented 13 years ago

@maccman We've already discussed it, but still. Can you please reconsider adding these helpers.

Without those we will have to write:

render: ->
  @el.html JST['app/views/posts/show'](post)

instead of:

render: ->
  @el.html @htmlFor 'show', post

I really think that it makes a huge difference.

dnagir commented 13 years ago

Sorry, there are "intermediate" commits. Those you've already merged. Relevant is only df936f5.

dnagir commented 13 years ago

I have released the spine-extensions to move keep those "opinionated" things out of Spine, so that if people want to use - it is easy enough.

I think ATM it will allow to keep spine-rails simple and provide extensions when we need those.