In this video, we will convert our one file templates to make use of ExpressionEngine’s template layouts and partials
{!-- Our Layout--}
<!DOCTYPE html>
<html>
<head>
<title>My Site</title>
</head>
<body>
{layout:contents}
</body>
</html>
{!-- Our code --}
{layout="template_group/template"}
<p>Hello world!</p>
{!-- Our Layout--}
<!DOCTYPE html>
<html>
<head>
<title>{layout:title}</title>
</head>
<body>
{layout:contents}
</body>
</html>
{!-- Our code --}
{layout="template_group/template"}
{layout:set name="title"}This title will show up now!{/layout:set}
<p>Hello world!</p>