amps-in-the-trunk
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "amps-in-the-trunk", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Eats HTML, spits out AMP pages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,10 +16,10 @@ # A module to transform HTML directly to Google AMP HTML | ||
- Use a different layout that: | ||
- doesn't have all the usual analytics <script> tags | ||
- inlines stylesheets | ||
- Takes the HTML generated by your templating engine and use amps-in-the-trunk to make AMP HTML <amp-img> | ||
- doesn't have all the usual analytics `<script>` tags | ||
- inlines all stylesheets | ||
- Take the HTML generated by your templating engine and use amps-in-the-trunk to turn `<img>` into AMP HTML `<amp-img>` | ||
So you're using express, this looks like | ||
- Use 'layout=' to specify the AMP layout rather than your normal one | ||
- Provide a callback to `res.render()` to allow us to intercept the rendered HTML and convert it to AMP | ||
- Use `layout=` to specify the AMP layout rather than your normalone | ||
- Provide a callback to `res.render()` to allow us to intercept the rendered HTML and convert it to AMP: | ||
@@ -66,3 +66,4 @@ var ampsInTheTrunk = require('amps-in-the-trunk')() | ||
## Pull requests welcome | ||
This is the first version of the module, created really for my own needs. I'm quite happy to take pull requests for additional features. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4591
68