I notice most (if not all) templates are written in HTML with PHP snippets where required.
I've been writing a few PHP heavy templates, and instead of writing HTML and encasing almost every line in tags, I have opted for writing PHP, using the print function to render HTML.
Is there any reason I should be writing in mostly HTML instead?
I imagine there's more overhead using PHP to render the HTML, but is there enough to worry about?
Second to that, is there any reason templates encase every line in tags instead of just the opening and closing tags are required?
e.g.
<?php if($a == $b) {?>
<?php print 'a equals b';?>
<?php } else {?>
<?php print 'a does not equal b';?>
<?php } endif;?>
vs
<?php if($a == $b) {
print 'a equals b';
} else {
print 'a does not equal b';
} endif;?>