layout loader for webpack
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.js
package.json

README.md

layout-loader

html layout loader for webpack, with layout-loader, you can use require directly in html now!

Usage

  • a.html
<div>content from a.html</div>
  • b.html
<!-- require('layout?l!html!layout?r./a.html') -->
<div>content for b.html</div>
  • js
var htmlContent = require("layout?l!html!layout?r./b.html");
// => see result.html
  • result.html
<div>content from a.html</div>
<div>content for b.html</div>

Thanks