emmet_layout 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a28cfeec57c8ae8a653f7a7f5a16c294d6e6c711
4
- data.tar.gz: 5480a43e4e81779f37f064573de3cdc8fd6a055b
3
+ metadata.gz: ceb7bb152610fe86f970f600432a8c350d8ef52e
4
+ data.tar.gz: 9199915cc4d260d77d07dccd7422865f46f1143d
5
5
  SHA512:
6
- metadata.gz: 00b3dad3fabc96a3fe50763f17db27b3e05a61311cc3fca67fac3d68a96ffc59c373a6b1cdb93006d367cd7e383ca0708ba521d19fd8f2dba7f55aff2f3fbbcf
7
- data.tar.gz: ca287d376962ef44b09ae5c3bb9ca7933109d198fe849f8d49ddace7dcdc7e97a47fdca7051683b54cbb9e6b64350897bb5f000b8f82040dbd17b5ba26bf5830
6
+ metadata.gz: c08f4af06fc2f055d2d0629069654ab0cdbd8a6144e69d9a9db8e6b46a821ebb89c19d26aafd19fe67fe8a165c5d5b19afc566c110a908d355fa9d4e441175ca
7
+ data.tar.gz: f26546eedcd2bb2fdd31eeb49a502c136a9fe1e0acdbfb0d717a1317dc8b4e5f9748956fc66f04d99e24e18a9e96fe305e1759d109803e9b9c41bb171dd162ba
@@ -3,8 +3,18 @@
3
3
  <head>
4
4
  <title><%= yield(:page_title) or 'Emmet layout' %></title>
5
5
 
6
- <%= stylesheet_link_tag 'emmet/layout/application', media: 'all' %>
7
- <%= javascript_include_tag 'emmet/layout/application' %>
6
+ <% if content_for?(:stylesheets) %>
7
+ <%= yield(:stylesheets) %>
8
+ <% else %>
9
+ <%= stylesheet_link_tag 'emmet/layout/application', media: 'all' %>
10
+ <% end %>
11
+
12
+ <% if content_for?(:javascripts) %>
13
+ <%= yield(:javascripts) %>
14
+ <% else %>
15
+ <%= javascript_include_tag 'emmet/layout/application' %>
16
+ <% end %>
17
+
8
18
  <%= csrf_meta_tags %>
9
19
  </head>
10
20
  <body>
@@ -34,7 +44,11 @@
34
44
  </nav>
35
45
  <% end %>
36
46
 
37
- <%= yield %>
47
+ <% if content_for?(:content) %>
48
+ <%= yield(:content) %>
49
+ <% else %>
50
+ <%= yield %>
51
+ <% end %>
38
52
 
39
53
  <% if content_for?(:footer) %>
40
54
  <%= yield(:footer) %>
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Emmet
3
3
  module Layout
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emmet_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walmir Neto