├── .npmrc ├── test ├── index.js ├── package.json ├── js │ ├── bundle.js │ ├── inner.js │ └── reactive-props.js ├── uce-template-head.jpg ├── resolve.js ├── min │ ├── my-counter │ │ ├── my-counter.js │ │ ├── index.html │ │ └── my-counter.uce │ ├── partial.html │ ├── index.html │ ├── complex.html │ └── slots.html ├── my-counter │ ├── my-counter.js │ ├── index.html │ └── my-counter.uce ├── wc.html ├── my-btn.uce ├── spaces.html ├── setup.html ├── refs.html ├── csp │ └── index.html ├── unicorn.html ├── resolve-lazy.html ├── resolve.html ├── this.html ├── nested.html ├── wc.js ├── partial.html ├── loader.html ├── index.html ├── slots.html ├── dbmonster.css ├── complex.html ├── dbmonster.html └── dbmonster.js ├── bin ├── package.json └── index.js ├── cjs ├── package.json ├── partial.js └── index.js ├── _config.yml ├── nonce.txt ├── .gitignore ├── .npmignore ├── rollup ├── babel.config.js └── es.config.js ├── esm ├── partial.js └── index.js ├── LICENSE ├── package.json ├── extra-details.md ├── es.js ├── min.js └── README.md /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- 1 | require('../cjs'); -------------------------------------------------------------------------------- /bin/package.json: -------------------------------------------------------------------------------- 1 | {"type":"commonjs"} -------------------------------------------------------------------------------- /cjs/package.json: -------------------------------------------------------------------------------- 1 | {"type":"commonjs"} -------------------------------------------------------------------------------- /test/package.json: -------------------------------------------------------------------------------- 1 | {"type":"commonjs"} -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-architect -------------------------------------------------------------------------------- /nonce.txt: -------------------------------------------------------------------------------- 1 | ijeLM8+5uwZ7ZXFmK+H2dwIWdiKJ1A4zhZIsq2Ffqqo= -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .nyc_output 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /test/js/bundle.js: -------------------------------------------------------------------------------- 1 | export default 'Bundle loaded OK'; 2 | -------------------------------------------------------------------------------- /test/js/inner.js: -------------------------------------------------------------------------------- 1 | module.exports = 'Inner loaded OK'; 2 | -------------------------------------------------------------------------------- /test/uce-template-head.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WebReflection/uce-template/HEAD/test/uce-template-head.jpg -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .npmrc 3 | .nyc_output 4 | .travis.yml 5 | _config.yml 6 | node_modules/ 7 | rollup/ 8 | test/ 9 | -------------------------------------------------------------------------------- /test/resolve.js: -------------------------------------------------------------------------------- 1 | const {resolve} = customElements.get('uce-template'); 2 | 3 | // let's pretend this is a polyfill 4 | resolve('promise-helper', Promise); 5 | -------------------------------------------------------------------------------- /test/min/my-counter/my-counter.js: -------------------------------------------------------------------------------- 1 | Promise.all([ 2 | customElements.whenDefined('uce-template'), 3 | fetch('my-counter.uce').then((b) => b.text()) 4 | ]).then(([Template, parts]) => { 5 | document.body.appendChild(Template.from(parts)); 6 | }); 7 | -------------------------------------------------------------------------------- /test/my-counter/my-counter.js: -------------------------------------------------------------------------------- 1 | Promise.all([ 2 | customElements.whenDefined('uce-template'), 3 | fetch('my-counter.uce').then((b) => b.text()) 4 | ]).then(([Template = customElements.get('uce-template'), parts]) => { 5 | document.body.appendChild(Template.from(parts)); 6 | }); 7 | -------------------------------------------------------------------------------- /test/wc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |{{ item.value }}
13 | 14 |20 | This is 21 | a test 22 |23 |
11 | Original example @MDN 12 |
13 |<{{slot.name}}>
32 | {{slot.description}}
33 |
34 | None
`}} 38 |11 | Original example @MDN 12 |
13 |<{{slot.name}}>
49 | {{slot.description}}
50 |
51 | None
`}} 55 |35 | This is 36 | a test 37 |38 |
1?n-1:0),o=1;oFeatures
51 |