Hi Folks,
content–code separation is a paradigm many of us know (well, I hope so at least). so my question is: which way do you prefer?
the absolute way:
the template way:
the way that currently doesn't come to my mind:
regards
content–code separation is a paradigm many of us know (well, I hope so at least). so my question is: which way do you prefer?
the absolute way:
Code:
<?php
function makeContent() { /* … */ }
// some more code
/* printing out the HTML code */
include "header.htm";
makeContent();
?>
Code:
<html>
<head>…</head>
<body>
<?php
makeContent();
?>
</body>
</html>
Code:
…
Comment