mjml 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 +4 -4
- data/README.md +2 -2
- data/lib/mjml/render.rb +1 -1
- data/lib/mjml/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 074c6418fb34a7c3136bd5993784e6da2c3f63cc
|
4
|
+
data.tar.gz: 3767d0b093a9363680ee3308b218f8f3fea82a06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c96c033e12d07ec3114788249baa853b2df5b97411c138777b36489a190aac2f23983282a83f669908d7a1b9c2347141539abe25da7597804a8c1af2d27855f
|
7
|
+
data.tar.gz: 1e648f5649e72e8f57afb1d985ba029ed3ed292690fd3edc4f0203f9794004651053ed3e05d43b5332d077f76c1ece9aa25d8de995587070efa74bd696475a91
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ end
|
|
30
30
|
|
31
31
|
You have to install mjml compiler via `npm install mjml` to use this gem
|
32
32
|
|
33
|
-
The `exec_path` will be set default as `node_modules/mjml/bin/mjml`. If you use heroku you can config [multiple buildpacks](https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app) to make it support nodejs
|
33
|
+
In case of you don't set `exec_path`, The `exec_path` will be set default as `node_modules/mjml/bin/mjml`. If you use heroku you can config [multiple buildpacks](https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app) to make it support nodejs
|
34
34
|
|
35
35
|
#### Mjmj#render
|
36
36
|
|
@@ -44,7 +44,7 @@ The `exec_path` will be set default as `node_modules/mjml/bin/mjml`. If you use
|
|
44
44
|
You can use in mailer
|
45
45
|
|
46
46
|
```ruby
|
47
|
-
body = Mjml.render("#{Dir.pwd}/app/views/template", { name: 'Mjml parser' })
|
47
|
+
body = Mjml.render("#{Dir.pwd}/app/views/template.mjml", { name: 'Mjml parser' })
|
48
48
|
mail(to: xxx, subject: xxx, body: body, content_type: 'text/html')
|
49
49
|
```
|
50
50
|
|
data/lib/mjml/render.rb
CHANGED
data/lib/mjml/version.rb
CHANGED