add probably some important stuff to the readme
This commit is contained in:
parent
6dd61f6d38
commit
956fdbb4e3
1 changed files with 18 additions and 1 deletions
19
README.md
19
README.md
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue