调整版本并做测试
This commit is contained in:
12
README.py
12
README.py
@@ -9,7 +9,7 @@ This is a Python 3.9+ implementation of the JFinal Template Engine (Enjoy).
|
||||
Project Structure
|
||||
-----------------
|
||||
|
||||
py_enjoy/
|
||||
pyenjoy/
|
||||
├── __init__.py # Main package initialization
|
||||
├── kit/ # Utility classes
|
||||
│ ├── StrKit.py # String utilities
|
||||
@@ -93,19 +93,19 @@ Installation
|
||||
|
||||
```bash
|
||||
# Clone or download the project
|
||||
cd py_enjoy
|
||||
cd pyenjoy
|
||||
|
||||
# No installation required, just add to PYTHONPATH
|
||||
import sys
|
||||
sys.path.append('/path/to/py_enjoy')
|
||||
sys.path.append('/path/to/pyenjoy')
|
||||
```
|
||||
|
||||
Quick Start
|
||||
-----------
|
||||
|
||||
```python
|
||||
from py_enjoy.template.Engine import Engine
|
||||
from py_enjoy.kit.Kv import Kv
|
||||
from pyenjoy.template.Engine import Engine
|
||||
from pyenjoy.kit.Kv import Kv
|
||||
|
||||
# Get the template engine
|
||||
engine = Engine.use()
|
||||
@@ -145,7 +145,7 @@ data = Kv.of("items", [
|
||||
### Custom Directives
|
||||
|
||||
```python
|
||||
from py_enjoy.template.Directive import Directive
|
||||
from pyenjoy.template.Directive import Directive
|
||||
|
||||
class UpperDirective(Directive):
|
||||
def exec(self, env, scope, writer):
|
||||
|
||||
Reference in New Issue
Block a user