first commit
This commit is contained in:
42
readme.md
Normal file
42
readme.md
Normal file
@@ -0,0 +1,42 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user