Skip to content

Commit

Permalink
Better readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksrutins committed Dec 23, 2023
1 parent e070daa commit ac769bc
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@

> A static site generator written in Rust.
## Declarative Shadow DOM polyfill

```javascript
// https://web.dev/declarative-shadow-dom/#polyfill
(function attachShadowRoots(root) {
root.querySelectorAll("template[shadowrootmode]").forEach(template => {
const mode = template.getAttribute("shadowrootmode");
const shadowRoot = template.parentNode.attachShadow({ mode });
shadowRoot.appendChild(template.content);
template.remove();
attachShadowRoots(shadowRoot);
});
})(document);
## Installation
Install it from [Cargo](https://crates.io/crates/cheetah):
```shell
cargo install cheetah
```

## Usage
See [the website](https://cheetah.farthergate.com).

0 comments on commit ac769bc

Please sign in to comment.