layout-loader

1.0.3 • Public • Published

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!html!./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

Package Sidebar

Install

npm i layout-loader

Weekly Downloads

13

Version

1.0.3

License

ISC

Last publish

Collaborators

  • fanlia