This is just a proof of concept for PHP-enabled HTML files. Instead of <?php
and ?>
tags in a PHP file, you could use {}
in an HTML file. This would allow you to create static HTML templates that use PHP functions. I'm not sure why you would want to do this instead of using normal PHP, but you could!
Sample HTML:
<p>Today's date is { date('F j, Y') }</p>
And uh..that's the only use I can think of.