Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Python for File Systems!
You have completed Python for File Systems!
Preview
We're almost there! Let's wrap things up and discuss some ideas of how you can expand this project further.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
And so again I'm going to do
these up here near the top,
0:00
just because they're not
involved in a lot of the stuff.
0:00
So flask_template_prepare
will take a string, and
0:04
we're gonna just do a bunch
of transforms to the string.
0:08
So we're gonna do re.sub.
0:11
And we're going to escape any opening
braces and any percent signs.
0:14
And then we're going to replace that
with a less than and a percent sign.
0:24
We're gonna do that for all of string.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up