Below is a basic example of what I have done.
Grab html template
$template = file_get_contents("skins/".CSS_URL."/layouts/homepage.html");
Build array of items to search for
$search = array("|{THUMB_FEATURED_IMAGE}|", "|{LARGE_FEATURED_IMAGE}|", "|{PAGE_CONTENT}|");
Build array of items to replace the searched with
$replace = array($featured_image, $featured_image_l, $content);
Do the actual replace
$output = preg_replace($search, $replace, $template);
Then echo the output.
Is this bad practice and/or is there a better way without having to rewrite my entire CMS using Smarty?
Thanks in advance