├── .gitignore ├── src ├── index.11tydata.js ├── _includes │ ├── test │ │ └── index.njk │ └── any-page.njk └── index.njk ├── www └── index.html ├── eleventy.config.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /src/index.11tydata.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | some: "data", 3 | }; 4 | -------------------------------------------------------------------------------- /src/_includes/test/index.njk: -------------------------------------------------------------------------------- 1 |

visible text

2 |

{{ some }}

3 | -------------------------------------------------------------------------------- /src/index.njk: -------------------------------------------------------------------------------- 1 | --- 2 | layout: any-page.njk 3 | --- 4 | 5 | THis is some fancy content! 6 | -------------------------------------------------------------------------------- /src/_includes/any-page.njk: -------------------------------------------------------------------------------- 1 | 2 |
3 | {% include "test/index.njk" %} 4 |
5 | 6 |
7 | {{ content | safe }} 8 |
9 | -------------------------------------------------------------------------------- /www/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

visible text

4 |

data

5 | 6 |
7 | 8 |
9 | 10 | THis is some fancy content! 11 | 12 |
13 | -------------------------------------------------------------------------------- /eleventy.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @param {import("@11ty/eleventy/src/UserConfig")} eleventyConfig 3 | * @returns {ReturnType} 4 | */ 5 | module.exports = function (eleventyConfig) { 6 | return { 7 | dir: { 8 | input: "src", 9 | output: "www", 10 | } 11 | }; 12 | }; 13 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "11ty-3072", 3 | "description": "", 4 | "version": "1.0.0", 5 | "author": "Peter deHaan ", 6 | "bugs": { 7 | "url": "https://github.com/pdehaan/11ty-3072/issues" 8 | }, 9 | "devDependencies": { 10 | "@11ty/eleventy": "^2.0.1" 11 | }, 12 | "homepage": "https://github.com/pdehaan/11ty-3072#readme", 13 | "keywords": [], 14 | "license": "MPL-2.0", 15 | "main": "index.js", 16 | "repository": { 17 | "type": "git", 18 | "url": "git+https://github.com/pdehaan/11ty-3072.git" 19 | }, 20 | "scripts": { 21 | "build": "eleventy", 22 | "test": "echo \"Error: no test specified\" && exit 1" 23 | } 24 | } 25 | --------------------------------------------------------------------------------