Can I use Smarty template engine in my html templates?

I’m thinking about making a html template that uses Smarty templates engine (there are a lot of long repeatable pieces of code that I would like to put in a template and display it anywhere I want.

I don’t see any Smarty based HTML templates here so I’m wondering if the use of Smarty is allowed in this category?

I wouldn’t make it so difficult for yourself.
Just make the template with smarty templates (like you normally would) but bundle and prettify the output and upload the html.

You want to minimize the problems.

Thanks, I was actually thinking about doing it this way. Might be the best way after all.