Building Data-Driven Web Apps with Pyramid and SQLAlchemy Transcripts
Chapter: Chameleon templates
Lecture: Template language comparison
0:00 When we created our project our website with Cookiecutter you saw it ask a question. What template language would you like to use?
0:08 Would you like to use Jinja2, Chameleon, or Mako? So let's look at these three template languages
0:14 all of which are totally viable choices for our web app and compare them and sort of see what the trade-offs are
0:20 why you might choose one over the other and so on. So like I said there's these three options. We have Jinja2 and I would say really
0:28 this is the most popular one of these. It's very much the default for Flask and now it is also become the default for Pyramid.
0:39 So being the default means most people pick that and I believe Flask this is the only one that ships with it.
0:46 So that really tilts the scale in it's favor if you will. There's also Mako. This is probably the least popular.
0:52 This is the one I've seen the least of I guess but maybe I'm just not looking in the right places. But Mako and Jinja2 are pretty similar.
0:59 And then Chameleon we've looked at Chameleon. And below you see the three packages that you have to install only one at a time
1:06 for enabling that language in your web app. So pyramid_jinja2, pyramid_mako, or pyramid_chameleon. And if you pick the various options
1:17 in that Cookiecutter template it will choose for you.