├── .editorconfig ├── .github ├── funding.yml └── workflows │ └── nodejs.yml ├── .gitignore ├── .nycrc ├── LICENSE ├── README.md ├── lib └── index.js ├── package.json ├── test ├── expected │ ├── basic.html │ ├── global-variables.html │ ├── inner-locals-big-json.html │ ├── inner-locals-not-json.html │ ├── inner-locals.html │ ├── locals-not-json.html │ ├── locals.html │ ├── multiple-include.html │ ├── nested.html │ ├── not-clear-rest.html │ ├── override-global-variables.html │ └── root.html ├── fixtures │ ├── basic.html │ ├── blocks │ │ ├── button │ │ │ └── button.html │ │ └── partial │ │ │ └── phone.html │ ├── global-variables.html │ ├── includes │ │ ├── 1.html │ │ ├── 2.html │ │ ├── 3.html │ │ ├── 4.html │ │ ├── 5.html │ │ └── 6.html │ ├── inner-locals-big-json.html │ ├── inner-locals-not-json.html │ ├── inner-locals.html │ ├── locals-not-json.html │ ├── locals.html │ ├── multiple-include.html │ ├── nested.html │ ├── not-clear-rest.html │ ├── override-global-variables.html │ └── root.html └── test.js └── xo.config.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/funding.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/.github/funding.yml -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | .nyc_output 4 | *.log 5 | -------------------------------------------------------------------------------- /.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "reporter": ["lcov", "text"] 3 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/README.md -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/lib/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/package.json -------------------------------------------------------------------------------- /test/expected/basic.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/expected/basic.html -------------------------------------------------------------------------------- /test/expected/global-variables.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/expected/global-variables.html -------------------------------------------------------------------------------- /test/expected/inner-locals-big-json.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/expected/inner-locals-big-json.html -------------------------------------------------------------------------------- /test/expected/inner-locals-not-json.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/expected/inner-locals-not-json.html -------------------------------------------------------------------------------- /test/expected/inner-locals.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/expected/inner-locals.html -------------------------------------------------------------------------------- /test/expected/locals-not-json.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/expected/locals-not-json.html -------------------------------------------------------------------------------- /test/expected/locals.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/expected/locals.html -------------------------------------------------------------------------------- /test/expected/multiple-include.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/expected/multiple-include.html -------------------------------------------------------------------------------- /test/expected/nested.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/expected/nested.html -------------------------------------------------------------------------------- /test/expected/not-clear-rest.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/expected/not-clear-rest.html -------------------------------------------------------------------------------- /test/expected/override-global-variables.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/expected/override-global-variables.html -------------------------------------------------------------------------------- /test/expected/root.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/expected/root.html -------------------------------------------------------------------------------- /test/fixtures/basic.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/fixtures/basic.html -------------------------------------------------------------------------------- /test/fixtures/blocks/button/button.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/fixtures/blocks/button/button.html -------------------------------------------------------------------------------- /test/fixtures/blocks/partial/phone.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/fixtures/blocks/partial/phone.html -------------------------------------------------------------------------------- /test/fixtures/global-variables.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/fixtures/global-variables.html -------------------------------------------------------------------------------- /test/fixtures/includes/1.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/posthtml/posthtml-include/HEAD/test/fixtures/includes/1.html -------------------------------------------------------------------------------- /test/fixtures/includes/2.html: -------------------------------------------------------------------------------- 1 |