middleman-roadie 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90476ca330ed7f32e9b54b88bff91f48c93f4a70
4
- data.tar.gz: bf11be0cb579965df7c674ac32124141d3b3e459
3
+ metadata.gz: 6f1336eea0c2ecd9a8a3254b6c641208d8e78f3b
4
+ data.tar.gz: 1c2a4bad8a371ee8c37eddf3d6632585039f0d30
5
5
  SHA512:
6
- metadata.gz: a060334384befa429ad07a5cdd8edcb2f137a79227e4ba1b1786b3004747117c864205ee53c3760a899fd555c8e9889cf1cc51d5d0b72d7e9c9310ca289235a8
7
- data.tar.gz: f83a778603d08aeed67e4e217db85a55e7e6ec5dcd9852421bba7a5349f4758623435c733adef37914d03d2c2b57d0395b5dd97a89da4b04032aacd0ed80c5c5
6
+ metadata.gz: 3511dc13c42bd475e505ec6aa3fb1b2383a17d63dc5062d35b0134b4cb178197f3cea8d6a6670606d22c090750f6f619d8eeb7d9aeea08044ee5bd710b1cbd7f
7
+ data.tar.gz: 2ebe7a5ed0d90e3f9d780ba109f90a8c86ac6d81bcc6415929e250ca93c78b5fe7cd567dabef7055a6650f4c0188ab0ddf977b17a6ad766ab57954ea3c55cc69
data/README.md CHANGED
@@ -10,9 +10,11 @@ Put `activate :roadie` in config.rb (*not* in the `configure :build` block).
10
10
 
11
11
  ## Usage
12
12
 
13
- Use a custom layout for email rendering page `'/email/*', layout: :email` in config.rb.
13
+ Use a custom layout for email rendering `page '/email/*', layout: :email` in config.rb.
14
14
 
15
- **Important:** link stylesheets to be inlined using `stylesheet_inline_tag 'your_css'` helper.
15
+ **Important:** stylesheets must be linked using `stylesheet_inline_tag` helper.
16
+
17
+ If for some reason you need to include styles but don't want to be inlined on html, just include with `stylesheet_inline_tag your_styles, false`
16
18
 
17
19
  ## Contributing
18
20
 
@@ -22,10 +22,11 @@ module Middleman
22
22
  # def manipulate_resource_list(resources)
23
23
  # end
24
24
  helpers do
25
- def stylesheet_inline_tag(name)
25
+ def stylesheet_inline_tag(name, import = true)
26
+ ignore_tag = import ? '' : ' data-roadie-ignore'
26
27
  name += ".css" unless name.include?(".css")
27
28
  css_path = sitemap.resources.select { |p| p.source_file.include?(name) }.first
28
- "<style type='text/css'>#{css_path.render}</style>"
29
+ "<style type='text/css'<%= #{ignore_tag} %>>#{css_path.render}</style>"
29
30
  end
30
31
  end
31
32
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Roadie
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-roadie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Ortiz