|
|
hace 4 años | |
|---|---|---|
| sections | hace 4 años | |
| src | hace 4 años | |
| themes | hace 4 años | |
| .gitignore | hace 4 años | |
| README.md | hace 4 años | |
| STORY | hace 4 años | |
| __init__.py | hace 4 años | |
| build.py | hace 4 años | |
| config.py | hace 4 años | |
| requirements.txt | hace 4 años | |
| site.json | hace 4 años |
graff 静态企业网站生成
see STORY
注: 模板引擎使用 mustache
site.json: 网站数据配置文件,包括网站名字,描述等。
使用此文件编译 src 下的每个文件,编译期间会注入动态字段 当前注入 [filename]:filename.mustache
web: build 后生成网站 html 所在目录。
build.py: 编译程序。
config.py: 编译配置,主题选择等。
pip install -r requirements.txt
python build.py
这个项目就是一个 Demo