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 Intro to Java Web Development with Spark!
You have completed Intro to Java Web Development with Spark!
Preview
We know that code duplication is something we want to avoid by all means. So let’s take a look at some best practices that will avoid duplication in your styles as well as your HTML.
Learn more:
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
code, especially in the HTML boilerplate
that's surrounding all of our pages.
0:00
Now imagine that you wanted
to change the page layout.
0:01
We'd have to go to every single page and
change it.
0:04
Handlebars, as well as most
other templating languages,
0:07
offer a way to do this.
0:10
This usually comes under the name of
template reuse, or template inheritance,
0:12
and-or template inclusion.
0:16
Now, it means the ability to embed
part of a template into another one.
0:19
Also, I know when my designer
coworkers take a look at this site,
0:24
they're not gonna be a fan of the retro
90s look that we've been pushing.
0:27
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