include-me is basic templating project which import file content to selected file inside folder and its sub folders.
$ yarn add include-me
$ npm install include-me
.
+-- pages
| +-- common
| +-- footer.html
| +-- index.html
<footer>
Hello From Footer
</footer>
<template>
<html>
<head></head>
<body>
Hello From Content
${include('footer')}
</body>
</html>
</template>
const includeMe = new IncludeMe(__dirname + '/pages', 'name');
const asObject = includeMe.load().asObject();
const asArray = includeMe.load().asArray();
See example folder.
- auto publish npm package
- create continuous integration
- add recursive import functionality
- solve the cycle problem
- add error handle functionality (almost done)
- write the all unit tests (almost done)
- write documentation (Basic)
- add badges(travis, license, npm in future)
- add license file
- Emre Kul