Friday 29 August 2014

[dcphp-dev] Create twig extensions

On the heels of our intro to Symfony, I just saw this:

http://krunoknego.com/2014/08/28/simple-regex-twig-extension/

" This will be a short tutorial how to build twig extension that uses regular expressions. Let's say you have a html document in your variable and you want to extract image or paragraph from that variable. If you were to look at twig's filters and functions you'd soon notice there's nothing that can help you accomplish that task Twig Documentation"

0 comments:

Post a Comment