Skip to content

maelswarm/modular-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Modularize your code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published