I am using that kind of html template:
Hello {{username}}, my email is {{email}} and my age is {{age}}
(number of {{variables}} is dynamic)
I would like to autoamtically parse the template and replace all {{variables}} by their php variable content
ex:
$username="Peter"; $email="myemail";$age=20;
so it should render like :
$res = render("template.html", array("username"=>$username, email=>$email, age=>$age));
Hello Peter; my email is myemail and my age is 20