|
|
|
|
|
by FriedrichN
845 days ago
|
|
Why is it a "bad idea"? I'm genuinely curious. It works great, it's fast and you don't have to learn a new templating language or dialect every 2-3 years. Or try to figure out how to do trivial things like loops in loops. I don't quite get the use of templating engines in PHP because PHP is a templating engine itself. |
|
[1] It's so much worse than this... You can use some horrible hacks like undefining a well-known function that each template implements, but this would only work one level deep without also adding a mechanism for "calling" a template, and at that point you are making a template system on top of PHP.