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:


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


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

Many thanks in advance for your replies.


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