0.1.12 • Published 6 years ago

modular-code v0.1.12

Weekly downloads
10
License
MIT
Repository
github
Last release
6 years ago

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>
0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago