pug-plugin-panorama-layout-includes
v1.0.0
Published
Pug plugin used provide cleaner and pug-compatible syntax for <include> tag in Panorama layout files.
Downloads
3
Maintainers
Readme
pug-plugin-panorama-layout-includes
Pug plugin used provide cleaner and pug-compatible syntax for <include> tag in Panorama layout files.
Install
npm i pug-plugin-panorama-layout-includes
# or
yarn add pug-plugin-panorama-layout-includes
Usage
const pug = require('pug');
const pugPluginPanoramaLayoutIncludes = require('pug-plugin-panorama-layout-includes');
const source = `
root
includes
style(src='./style.css')
script(src='./script.js')
`;
pug.render(source, { plugins: [pugPluginPanoramaLayoutIncludes] })
// <root>
// <styles>
// <include src="./style.css"></include>
// </styles>
// <scripts>
// <include src="./script.js"></include>
// </scripts>
// <Panel class="content"></Panel>
// </root>