TAG | Twig
A few months ago we launched this app already but it got wiped again. Now after some refactoring and redesigning on our side and after some changes on the Facebook side (event creation no longer spawns a status update!) the app is live again still powered by Symfony2.
More or less by accident I discovered that Facebook now teams up Heroku a San Francisco based hoster to provide easy hosting environments to Facebook App developers.
So I thought lets try it out and while I’m at it make it run Silex and Twig!
So yesterday I migrated the CSS of a small Symfony2 project to Sass/compass. Getting used to it takes a while but is generally an easy and worthwhile experience.
The results are awesome!
After quite a long time I am working on a small rich frontend project. One thing that almost always start clean and gets messy soon are stylesheets.
Essentially it is a static site generator just like Jekyll which is used on GitHub but written in PHP with some well known components.
And it has to do with the DateTime type.
You can do a lot with the existing Twig filters and function but I just found myself of chaining them to a giant piece of string only to manipulate some values before using them. Something I could’ve done easily in PHP but that proved to be really difficult in Twig.
That was a clear sign of abuse!
Time to write my own Twig extension.