Web
Article

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!

More:

Free Guide:

7 Habits of Successful CTOs

"What makes a great CTO?" Engineering skills? Business savvy? An innate tendency to channel a mythical creature (ahem, unicorn)? All of the above? Discover the top traits of the most successful CTOs in this free guide.

  • 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

Recommended
Sponsors
Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

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