add probably some important stuff to the readme

This commit is contained in:
Rowan 2025-10-06 16:36:39 -04:00
parent 6dd61f6d38
commit 956fdbb4e3

View file

@ -3,6 +3,23 @@ an easy to train html templating system
# usage
```html
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<template id="pg-template">
<slot></slot>
</template>
</head>
<body>
<puppygirl-domme template="pg-template">
<p>rawerf :3</p>
</puppgirl-domme>
</body>
</html>
```
## cli
```
@ -32,5 +49,5 @@ pg = Puppygirl(
parsed = pg.fetch("index.html")
using open("dist/index.html", "w") as f:
f.write(str(parsed))
f.write(parsed.prettify()) # parsed is a beautifulsoup4 object
```