Template parsing

Hi all,

I have some HTML files I use as templates to produce PDF documents through the use of mPDF. The HTML files have some placeholders like this:

{field_to_substitute}

I’ve found this library that would do the job:

HTML_Template_IT

but I would like to know if there’s an Yii2 way to do this.

Many thanks in advance for your replies.

Regards.

There’s no “Yii2 way”. Just use it.