rwz/nestive

Add method like `content_for?`

PikachuEXE opened this issue · 1 comments

- unless area(:header).empty?
  .header-container
    .container
      .content-container
        = area(:header)

Just don't quite like the unless area(:header).empty? code
Should be if content_for_area?(:header) (method name can be changed)

rwz commented

Well, nothing really stops you from implementing this method as a helper in your views. Nestive tries to have a minimal footprint and define as few methods as possible.