Building Data-Driven Web Apps with Pyramid and SQLAlchemy Transcripts
Chapter: Chameleon templates
Lecture: Template language comparison

Login or purchase this course to watch this video and the rest of the course contents.
0:00 When we created our project
0:01 our website with Cookiecutter
0:03 you saw it ask a question.
0:05 What template language would you like to use?
0:07 Would you like to use Jinja2, Chameleon, or Mako?
0:10 So let's look at these three template languages
0:13 all of which are totally viable choices for our web app
0:17 and compare them and sort of see what the trade-offs are
0:19 why you might choose one over the other and so on.
0:23 So like I said there's these three options.
0:25 We have Jinja2 and I would say really
0:27 this is the most popular one of these.
0:31 It's very much the default for Flask
0:34 and now it is also become the default for Pyramid.
0:38 So being the default means most people pick that
0:41 and I believe Flask
0:43 this is the only one that ships with it.
0:45 So that really tilts the scale in it's favor if you will.
0:48 There's also Mako.
0:49 This is probably the least popular.
0:51 This is the one I've seen the least of I guess
0:53 but maybe I'm just not looking in the right places.
0:56 But Mako and Jinja2 are pretty similar.
0:58 And then Chameleon
0:59 we've looked at Chameleon.
1:01 And below you see the three packages that you have to install
1:04 only one at a time
1:05 for enabling that language in your web app.
1:08 So pyramid_jinja2, pyramid_mako, or pyramid_chameleon.
1:14 And if you pick the various options
1:16 in that Cookiecutter template
1:17 it will choose for you.