Skip to content

AcademiaMeow/Tacobro

Repository files navigation

PR 要發的話自己發R

$ python run.py
$ git clone https://github.com/kehanlu/Tacobro.git
$ cd tacobro
$ virtualenv .env
  (or python3 -m venv .env)
$ . .env/bin/activate
$ pip install -r requirements.txt

Branch

  • master/
  • release/ 放在伺服器上的版本
  • dev/{user} 開發版本

Controller

RESTFUL STYLE

Document

Template

View

return Template("index.html").render(request, {
                "name": "Test",
                "age": 20,
                "ouo?": True,
                "secret": "S3CR3T"
            })

HTML file

<!-- 普通的傳變數進去 -->
Name: {{ name }}<br>
Age: {{ age }}<br>

<!-- 傳不存在的變數進去會 replace 成空白 -->
Test: {{ MUMI_JUMP_JUMP }}

{% if ouo? %} <!-- condition 只支援傳 boolean 進去 -->
ouo {{ secret }} <!-- 可以在 if 裡面擺 template tag ㄛ -->
{% else %}
QAQ
{% endif %}

About

喵喵肥宅社群網站。A meow meow fat nerd SNS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published