Sha256: b3c41130bb5eeffdfab5b1da89e4a497724c5298c3799fb2dd497106723d7a24

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

erb_index_path = File.join %w(app views layouts application.html.erb)
@generator.remove_file(erb_index_path)
slim_index_path = File.join %w(app views layouts application.html.slim)
@generator.create_file slim_index_path, <<-SLIM
doctype 5
html
  head
    title #{app_name}
    = stylesheet_link_tag    'application', media: 'all'
    = javascript_include_tag 'application'
    = csrf_meta_tags
<% if pair?(:gon) %>    = include_gon
<% end %>
  body class=controller_name
    = yield
SLIM

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
app_drone-0.12.1 lib/app_drone/drones/slim_view/application_slim.erb
app_drone-0.12.0 lib/app_drone/drones/slim_view/application_slim.erb