Python for Entrepreneurs Transcripts
Chapter: Build web apps with Pyramid: Applied web development
Lecture: Introduction to Chameleon templates

Login or purchase this course to watch this video and the rest of the course contents.
0:01 Let's take a moment and talk about the options we have for templates and template languages.
0:08 So three of the most popular template languages for Python are jinja2, Mako and Chameleon.
0:16 As you've seen, Chameleon is default template language in Pyramid but it's not the only option, if you prefer jinja2, then wherever you see the include
0:27 and the requirement specification for pyramid_chameleon just change that to pyramid_jinja2. Similarly, if you like Mako, go for that.
0:36 In this section we are going to focus on two things, we are going to focus on how to use template to define data-driven HTML pages,
0:44 and how to use Chameleon to build a shared single definition of the site design. So, how do we build one view that basically defines the master view
0:56 for all the pages and then each individual page just adds its own special content, whatever it is about that page that is unlike all the others.


Talk Python's Mastodon Michael Kennedy's Mastodon