graff implements for air theme. used for studio homepage.
|
|
4 years ago | |
|---|---|---|
| sections | 4 years ago | |
| src | 4 years ago | |
| themes | 4 years ago | |
| .gitignore | 4 years ago | |
| Makefile | 4 years ago | |
| README.md | 4 years ago | |
| STORY | 4 years ago | |
| __init__.py | 4 years ago | |
| apidoc.json | 4 years ago | |
| build.py | 4 years ago | |
| config.py | 4 years ago | |
| requirements.txt | 4 years ago | |
| site.toml | 4 years ago |
graff_air is a business homepage template.
see STORY
The template engine is mustache
added ['file']=filename
added lambdas ['lambdas']['name']=function
hash
{
"username": "admin"
}
{{# lambdas.equal_output }}
{{username}}==admin ? red : black
{{/ lambdas.equal_output }}
Output:
red
pip install -r requirements.txt
python build.py
Try to hack by changing the .mustache files, or site.toml file, even edit the theme to examine what will happen.