modular-code

0.1.12 • Public • Published

modular-code

An incredibly simple way to modularize your code.

Install

npm install -g modular-code

root.html

{%header.html%}
{%body.html%}
{%footer.html%}

header.html

<html>
<head>
</head>

body.html

<body>
  <div>
    {%hello.html%}
    {%world.html%}
  </div>
</body>

footer.html

</html>

hello.html

<span>Hello</span>

world.html

<span>World</span>

Build

modular-code ./root.html ./main.html

Result - main.html

<html>
<head>
</head>
<body>
  <div>
    <span>Hello</span>
    <span>World</span>
  </div>
</body>
</html>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.121latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.121
0.1.110
0.1.100
0.1.90
0.1.80
0.1.70
0.1.60

Package Sidebar

Install

npm i modular-code

Weekly Downloads

1

Version

0.1.12

License

MIT

Unpacked Size

3.06 kB

Total Files

4

Last publish

Collaborators

  • roecrew