├── .gitignore ├── .prettierrc.json ├── LICENSE ├── README.md ├── demo ├── index.html └── simple-greeting.html ├── package-lock.json ├── package.json ├── src ├── demo │ └── index.ts ├── stampino-base-element.ts ├── stampino-element.ts └── test │ ├── stampino-base-element_test.ts │ └── stampino-element_test.ts ├── tsconfig.json ├── web-dev-server.config.js └── web-test-runner.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /test 3 | /.wireit 4 | 5 | /demo/*.d.ts 6 | /demo/*.d.ts.map 7 | /demo/*.js 8 | /demo/*.js.map 9 | 10 | *.tsbuildinfo 11 | 12 | /stampino-element.* 13 | /stampino-base-element.* 14 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "bracketSpacing": false 4 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Justin Fagnani 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # stampino-element 2 | 3 | `` is a web component for creating _declarative web components_. That is, defining web components entirely in HTML. 4 | 5 | `` uses [Stampino](https://www.npmjs.com/package/stampino) (which in turn uses [lit-html](https://lit-html.polymer-project.org/)) for template rendering, and [LitElement](https://lit-element.polymer-project.org/) for reactive properties. 6 | 7 | Templates can have expressions and control flow like `