1.0.3 • Published 10 years ago

layout-loader v1.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

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

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago