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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    14
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    14
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i layout-loader

Weekly Downloads

17

Version

1.0.3

License

ISC

Last publish

Collaborators

  • fanlia