42 lines
578 B
Markdown
42 lines
578 B
Markdown
# PyWPR - Python Web Page Render
|
|
`.pyp` - **Py**thon **P**age *btw*
|
|
## Get Started
|
|
1. remove **www/**\*
|
|
2. run main.py
|
|
|
|
## Syntax
|
|
### integration
|
|
```html
|
|
<py!>
|
|
# Here is Python Code
|
|
</py!>
|
|
```
|
|
```html
|
|
<p?>"Text to print"</p?>
|
|
<!--- also supports functions-->
|
|
<p?>foo()</p?>
|
|
```
|
|
|
|
### queries
|
|
```python
|
|
# *.pyp?query
|
|
pyp.GET['query']
|
|
#or
|
|
pyp.GET.get('query','default_value')
|
|
```
|
|
### echos
|
|
```python
|
|
e(str|int|float) # you can add ignoreType=True
|
|
# or
|
|
print(object)
|
|
```
|
|
|
|
___
|
|
___
|
|
|
|
## _TODO_
|
|
+ ~~todo~~
|
|
+ indetation fix for multile `<p?>`
|
|
+ redirections
|
|
+ cookies
|
|
+ files upload |