News for hackers. Stuff that matters.
Re:Modern PHP without a framework by slim on Saturday March 31, 2018 @11:06PM (#16726479)
Some time ago there a guy that posted a "Show hn" showing his "lightweight templating engine in php". He parsed a HTML file and replaced <% %> tags with some text. It never occurred to him that php is actually a templating engine
Re:Modern PHP without a framework by scintill76 on Saturday March 31, 2018 @11:16PM (#16726516)
To be fair, if the <% %> tags HTML-escape the text, then it might be considered better than raw PHP.