O'Reilly logo

Instant Flask Web Development by Ron DuPlain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Templating with Jinja – setting a base template (Simple)

Flask ships with the Jinja templating engine to render any text format you need. Our scheduler will present HTML5 pages rendered by Jinja with a little style and a bit of JavaScript.

Getting ready

We will build templates using HTML, CSS, and JavaScript. You will need some familiarity with these to understand the responses we build in Flask. We will use Twitter's Bootstrap (getbootstrap.com/2.3.2/) framework for CSS and the jQuery (jquery.com) library for JavaScript. Both include online documentation. Bootstrap also includes icons, which we can use in our application, provided by Glyphicons (glyphicons.com). We will use a free theme for Bootstrap from Bootswatch (bootswatch.com).

We are working ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required