Skip to main content

Using Python Templates with Jinja and Google App Engine

By Brett Romero

Programming

Share:

Free JavaScript Book!

Write powerful, clean and maintainable JavaScript.

RRP $11.95

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!

Brett Romero is a software developer versed in .NET, PHP, Python, and iOS to name a few. He builds desktop, web and mobile applications. As well, he knows Illustrator and Photoshop backwards and forward. His design skills aren't too shabby either. Brett also founded Bitesize Business School, which helps entrepreneurs develop needed technical skills for running an online business while also teaching them invaluable business skills. His undergraduate major was mathematics but he finished with a degree in business administration then went on to study mathematics at the University of Washington. He also has an MBA from Arizona State University.

New books out now!

Learn how Git works, and how to use it to streamline your workflow!


Google, Netflix and ILM are Python users. Maybe you should too?