Sha256: 9970b42f8195e493c445ca2840a01084778c9df7acc81fcd9e263ec877d13074

Contents?: true

Size: 281 Bytes

Versions: 9

Compression:

Stored size: 281 Bytes

Contents

%ul.collection
  - collection.each do |item|
    - view_model = view_model_for item
    %li
      - options = (template_format ? { :format => template_format } : {})
      = view_model.render_as template_name, options
    = separator unless item == collection.entries.last
        

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
view_models-2.0.1 lib/rails2/generators/view_models/templates/views/view_models/collection/_collection.html.haml
view_models-2.0.0.ruby19 lib/rails2/generators/view_models/templates/views/view_models/collection/_collection.html.haml
view_models-2.0.0 lib/rails2/generators/view_models/templates/views/view_models/collection/_collection.html.haml
view_models-1.5.7 generators/view_models/templates/views/view_models/collection/_collection.html.haml
view_models-1.5.6 generators/view_models/templates/views/view_models/collection/_collection.html.haml
view_models-1.5.5 generators/view_models/templates/views/view_models/collection/_collection.html.haml
view_models-1.5.4 generators/view_models/templates/views/view_models/collection/_collection.html.haml
view_models-1.5.3 generators/view_models/templates/views/view_models/collection/_collection.html.haml
view_models-1.5.2 generators/view_models/templates/views/view_models/collection/_collection.html.haml