By default, each template in expression engine is an entire template. Is there a way to set a global template, and have each template be inserted as the content section of that template?
ie.
.template.php
:
<html>
<head>
</head>
<body>
{embed:currentpagecontent}
<footer>
</footer>
</body>
</html>
The only way I can think of doing it is to have common elements and embed them on every template - like so:
{embed:'.header.php'}
{embed:'.navbar.php'}
<h1>ipsum lorem</h1>
{embed:'.footer.php'}
it just seems messy having the same prefix and suffix on every template
(nb. this question sounds annoyingly confusing due the dual meaning of the word 'template' in expression engine!)