posthtml-inject
This plugin is intended to work with PostHTML. It will allow you to inject HTML elements with standalone object.
Changelog
0.4.2
- use
[data-name][data-id="posthtml-inject"]
to match container to insert, ignore matcher option.
EOL: '\n' // Optional INTENT: '\s\s' // Optional, include: // Optional, default elements property, declare explicit slot to insert elements: manifest: tag: 'link' attrs: href: 'manifest.json' library: tag: 'script' attrs: src: 'https://cdn.bootcss.com/react/15.6.1/react.js' tag: 'script' attrs: src: 'https://cdn.bootcss.com/moment.js/2.18.1/moment.min.js'
;
A matcher tag, which signifies where the HTML elements should be inserted during the build process. The name identify object key.
Posthtml <!-- slot manifest --> <!-- slot manifest --> <!-- slot library CDN scripts --> <!-- slot library CDN scripts -->
after build:
Posthtml <!-- slot manifest --> <!-- slot manifest --> <!-- slot library CDN scripts --> <!-- slot library CDN scripts -->
License
MIT