graff implements for air theme. used for studio homepage.

joe 3f179750b4 init repo 4 years ago
sections 3f179750b4 init repo 4 years ago
src 3f179750b4 init repo 4 years ago
themes 3f179750b4 init repo 4 years ago
.gitignore 3f179750b4 init repo 4 years ago
Makefile 3f179750b4 init repo 4 years ago
README.md 3f179750b4 init repo 4 years ago
STORY 3f179750b4 init repo 4 years ago
__init__.py 3f179750b4 init repo 4 years ago
apidoc.json 3f179750b4 init repo 4 years ago
build.py 3f179750b4 init repo 4 years ago
config.py 3f179750b4 init repo 4 years ago
requirements.txt 3f179750b4 init repo 4 years ago
site.toml 3f179750b4 init repo 4 years ago

README.md

What

graff_air is a business homepage template.

why

see STORY

Intro

The template engine is mustache

  • sections: html partials. header, nav, footer.
  • src: template engine source file.
  • themes: theme folder. one theme each sub-folder.
  • site.json: site config file. > fields in this file are used for injected to template engine variables.

added ['file']=filename

added lambdas ['lambdas']['name']=function

  • web: default build output folder
  • build.py: builder
  • config.py: some base config variables.

suported lambdas

  • equal_output

usage

hash
{
    "username": "admin"
}
{{# lambdas.equal_output }}
    {{username}}==admin ? red : black
{{/ lambdas.equal_output }}

Output:

red

Compile

pip install -r requirements.txt
python build.py

Forther more

Try to hack by changing the .mustache files, or site.toml file, even edit the theme to examine what will happen.