graff implements for air theme. used for studio homepage.
|
|
%!s(int64=4) %!d(string=hai) anos | |
|---|---|---|
| sections | %!s(int64=4) %!d(string=hai) anos | |
| src | %!s(int64=4) %!d(string=hai) anos | |
| themes | %!s(int64=4) %!d(string=hai) anos | |
| .gitignore | %!s(int64=4) %!d(string=hai) anos | |
| Makefile | %!s(int64=4) %!d(string=hai) anos | |
| README.md | %!s(int64=4) %!d(string=hai) anos | |
| STORY | %!s(int64=4) %!d(string=hai) anos | |
| __init__.py | %!s(int64=4) %!d(string=hai) anos | |
| apidoc.json | %!s(int64=4) %!d(string=hai) anos | |
| build.py | %!s(int64=4) %!d(string=hai) anos | |
| config.py | %!s(int64=4) %!d(string=hai) anos | |
| requirements.txt | %!s(int64=4) %!d(string=hai) anos | |
| site.toml | %!s(int64=4) %!d(string=hai) anos |
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.