Sha256: 1378240b94ddfa0fa99ae7a9389934e51baec401f641870454b614a145bba587

Contents?: true

Size: 265 Bytes

Versions: 6

Compression:

Stored size: 265 Bytes

Contents

%ol.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.last

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
view_models-1.5.7 generators/view_models/templates/views/view_models/collection/_list.html.haml
view_models-1.5.6 generators/view_models/templates/views/view_models/collection/_list.html.haml
view_models-1.5.5 generators/view_models/templates/views/view_models/collection/_list.html.haml
view_models-1.5.4 generators/view_models/templates/views/view_models/collection/_list.html.haml
view_models-1.5.3 generators/view_models/templates/views/view_models/collection/_list.html.haml
view_models-1.5.2 generators/view_models/templates/views/view_models/collection/_list.html.haml