flask模板 flask-bootstrap

1, the template

A, block block block block inherits the contents of the foregoing, it is necessary to add {{super ()}}

b、macro 宏:

   Role: the template defined functions (Defined Functions -> Note add () -> You can use the template name from import function name)
     practical application: create a separate html, used to define a macro language to create a function template, and then use {% from introducing import%}, using {{function name ()}}

2、flask-bootstrap

rear end

from flask_bootstrap import Bootstrap
Bootstrap(app)

front end

{% extends 'bootstrap/base.html' %}

See other source

Guess you like

Origin www.cnblogs.com/wt7018/p/12099439.html