3 ms·
eru, your answer is too generic - I could have googled that myself. I'm interested specifically in the shortcomings of PHP as a templating system.
by cousin_it 17y ago
eru, your answer is too generic - I could have googled that myself. I'm interested specifically in the shortcomings of PHP as a templating system.
- eru 17y agoOK. E.g. PHP does not check whether your templates are valid HTML (or even just half-way sane tag soup) at all. And you need to put a $ in front of every variable. Seems like someone did not know how to write a parser..
- cousin_it 17y agoDo other template engines, e.g. Smarty, check HTML validity? I tried looking at the docs and it wasn't apparent.
- eru 17y agoI would guess the PLT webserver can do so. At least it will statically avoid unclosed tags, since it's based on s-expressions. http://docs.plt-scheme.org/web-server/run_ss.html#%28part._insta%29 http://docs.plt-scheme.org/web-server/run_ss.html#%28part._i...