Skip to Main Content
Building Serverless Python Web Services with Zappa
book

Building Serverless Python Web Services with Zappa

by Abdulwahid Abdulhaque Barguzar
July 2018
Intermediate to advanced content levelIntermediate to advanced
324 pages
8h 14m
English
Packt Publishing
Content preview from Building Serverless Python Web Services with Zappa

Templates

Flask has built-in support for Jinja2 templating. Jinja2 templating has a standard defined pattern for rendering the HTML. We can place dynamic content by passing the context argument. Jinja2 gives an ability to render HTML with some expressions and conditions, extending and including template features.

Flask follows a standard templating scaffolding structure to lay out all template files. The following is the scaffolding we followed by creating a templates directory under the project's root directory and then creating subdirectories based on other module names:

Here, we have created templates as per the module and put the generic ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Docker for Microservices with Python

Hands-On Docker for Microservices with Python

Jaime Buelta

Publisher Resources

ISBN: 9781788837613Supplemental Content