调整版本并做测试

This commit is contained in:
2026-02-27 17:10:54 +08:00
parent fa673138f6
commit 31be9d0e97
77 changed files with 679 additions and 25 deletions

View File

@@ -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):