I'm not sure that I understand, but usually as far as pulling in information goes, you would do something like this:
PHP Code:
<?php
include('file.php');
echo <<< END
<html>
<head>
<title>$title</title>
</head>
<body>
<div>$body</div>
</body>
</html>
END;
?>
But you can also do this:
PHP Code:
<?php
$title = '<title>Hello</title>';
$body = '<div>Hello</div>';
echo <<< END
<html>
<head>
$title
</head>
<body>
$body
</body>
</html>
END;
?>
It mostly depends on how you are creating the page. The best way, I would say, is to put as much as you can in the main template and as little as you can in the vars or other files.
Bookmarks