rails_markdown_templates 1.0.0 → 1.0.1

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: 2d38a91c6b397d650055427672919dda346acb70
4
- data.tar.gz: 62bbed916e1d29ff3f3b4f745287d35b2cb9beea
3
+ metadata.gz: 7db5971722bda0fd05c0f21bea0f11dd03129cdf
4
+ data.tar.gz: bf94607a28f7b2ce017954640e04502881e5c1b8
5
5
  SHA512:
6
- metadata.gz: 51dfc8ad276a410d33051a18daa4a25b8723809b605a4486dbf35f0dd36ff368126b2d1109225116cb6485a0dccbd7efa5b4c108b861b1112e8f0ee0d2caa9a4
7
- data.tar.gz: e125ed4841dc67afed7b44d8a05826efdf835123c317499a84cef232d2583d02ca71c0715dc244a5b7e7c3d5a05245e42fca5509d4d162664f627d040fedd6f8
6
+ metadata.gz: 9f2c65a700b914015d61545798f5db12275faee4f4617fe1638e351bd3fedbfec5b354d0a53851cd4ae212c4e575bbd2b0d3d0e48603e50d6242a27aa4258eb0
7
+ data.tar.gz: 20c7e849a878d0c819cc1d989a020b66c87b1d8a6fb8078d4f2faba1f7008486f50b900a86a4e7a00bb22302ea4af4becd5efda8fd5aa895800e6a91597f42e2
data/README.md CHANGED
@@ -62,9 +62,9 @@ author: Bob Dylan
62
62
  Here is part of the document; a very meaningful part.
63
63
  ```
64
64
 
65
- The `metadata_tags_key` and `metadata_tags_key` attributes define the names
65
+ The `metadata_tags_key` and `metadata_tags_json` attributes define the names
66
66
  of the content blocks into which metadata will be placed. Metadata can be
67
- retrieved in Rails views using yield calls; for example:
67
+ retrieved in Rails views using `yield` calls; for example:
68
68
 
69
69
  ```html
70
70
  <head>
@@ -78,8 +78,13 @@ retrieved in Rails views using yield calls; for example:
78
78
  </head>
79
79
  ```
80
80
 
81
- This will output HTML `<meta />` tags: one for each metadata item present in
82
- the original YAML metadata block.
81
+ The call to `yield` the `:metadata_tags` content block will output HTML
82
+ `<meta />` tags: one for each metadata item present in the original YAML
83
+ metadata block.
84
+
85
+ The call to `yield` the `:metadata_json` content block will output the
86
+ metdata as JSON. This will typically be useful as a mechanism by which
87
+ metadata may be made available to JavaScript.
83
88
 
84
89
  > There is a restriction, however: you cannot `yield` the metadata content
85
90
  > block from within the markdown template in which the metadata is defined.
@@ -17,5 +17,5 @@
17
17
  # <http://www.gnu.org/licenses/>.
18
18
 
19
19
  module RailsMarkdownTemplates
20
- VERSION = "1.0.0"
20
+ VERSION = "1.0.1"
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_markdown_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Dawson