| moment.init_app(app) | moment.init_app(app) | ||||
| # blueprint for main parts of app | |||||
| # blueprint for main parts of app (contents and frontmatter) | |||||
| from .main import main as main_blueprint | from .main import main as main_blueprint | ||||
| app.register_blueprint(main_blueprint) | app.register_blueprint(main_blueprint) | ||||
| # blueprint for search parts of app | |||||
| # blueprint for search parts of app (Section 1: Searching the archive) | |||||
| from .search import search as search_blueprint | from .search import search as search_blueprint | ||||
| app.register_blueprint(search_blueprint) | app.register_blueprint(search_blueprint) | ||||
| # blueprint for interventions parts of app | |||||
| # blueprint for interventions parts of app (Section 2: Search Interventions) | |||||
| from .interventions import interventions as interventions_blueprint | from .interventions import interventions as interventions_blueprint | ||||
| app.register_blueprint(interventions_blueprint) | app.register_blueprint(interventions_blueprint) | ||||
| # @creation_date: 2022-09-07 | # @creation_date: 2022-09-07 | ||||
| # @license: The MIT License <https://opensource.org/licenses/MIT> | # @license: The MIT License <https://opensource.org/licenses/MIT> | ||||
| # @author: Simon Bowie <ad7588@coventry.ac.uk> | # @author: Simon Bowie <ad7588@coventry.ac.uk> | ||||
| # @purpose: Main route for index and other pages in Section 1: Searching the archive | |||||
| # @purpose: Main route for index and other miscellaneous pages | |||||
| # @acknowledgements: | # @acknowledgements: | ||||
| # https://www.digitalocean.com/community/tutorials/how-to-add-authentication-to-your-app-with-flask-login | # https://www.digitalocean.com/community/tutorials/how-to-add-authentication-to-your-app-with-flask-login | ||||
| # @creation_date: 2022-09-07 | # @creation_date: 2022-09-07 | ||||
| # @license: The MIT License <https://opensource.org/licenses/MIT> | # @license: The MIT License <https://opensource.org/licenses/MIT> | ||||
| # @author: Simon Bowie <ad7588@coventry.ac.uk> | # @author: Simon Bowie <ad7588@coventry.ac.uk> | ||||
| # @purpose: search route for search | |||||
| # @purpose: search route for Section 1: Searching the archive | |||||
| # @acknowledgements: | # @acknowledgements: | ||||
| # https://www.digitalocean.com/community/tutorials/how-to-add-authentication-to-your-app-with-flask-login | # https://www.digitalocean.com/community/tutorials/how-to-add-authentication-to-your-app-with-flask-login | ||||