|
duz posted:Naw, can't do that in PHP. Javascript can do what you want, don't know off hand what else could. Perl does this. code:
code:
|
# ¿ Mar 20, 2008 00:18 |
|
|
# ¿ Apr 29, 2024 15:21 |
|
Heskie posted:My CTO has this exact opinion, and while I don't disagree, Twig/Blade at least make things like escaping sensible. Built in support for things like partials/extending layouts is also nice. I'm also a fan of syntax like foreachelse and unless. I've used this 40-line template engine for a few things. It's *bare* minimalism but gets some jobs done. Plates adds some functionality but works pretty much the exact same way. Did I mention it's only 40 lines of code?
|
# ¿ Feb 6, 2016 12:31 |
|
The thing about prepared statements is you can do this:PHP code:
|
# ¿ Feb 14, 2016 03:53 |