Using Python Templates with Jinja and Google App Engine

By Brett Romero

Templating is an extremely useful technique when it comes to code reuse. Templates allow you to update only areas that change, preventing duplication of static areas. For example, navigations and footers rarely change. These two areas might be contained in a parent template while the middle of the page, where content changes often, switches out child templates.

Most Python developers like myself are familiar with Django and its ability to use templating. But when all you want is templating functionality, there’s no reason to install a full-blown framework. This is where Jinja comes in. Being very small, it’s simple to install and configure. Best of all, if you know how to use templating in Django, you’ll understand templating in Jinja.

In this screencast, I’ll demonstrate how to use Jinja templating along with the Google App Engine.

For more great content like this, visit the Hub, run by our friends at Learnable!

  • eduardo

    interesting !I have a question, can I use a contact form in my page using GAE ??? I want to receive email from my clients



Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Instant Website Review

Use Woorank to analyze and optimize your website to improve your website to improve your ranking!

Run a review to see how your site can improve across 70+ metrics!

Get the latest in Front-end, once a week, for free.