How to use Angular in Latte templates

In default Latte uses "single" curly braces for its macros:


and Angular "double" curly braces like this:


Unfortunately this will throw an error at Latte because everything right after first opening curly brace is considered to be a Latte macro. Of course, there isn't any macro named {}.

Luckily the solution is pretty simple. The only thing you need to keep in mind, is to put a space after opening curly braces. There is no need to change Latte syntax.

{{ }}

This is how your Latte template can look like with Angular:

<div n:if="$user->hasTasks()" ng-controller="TasksController as tasks">
    <strong>{$user->getName()}: </strong> {{ tasks.items.length }} tasks

TypeScript + Gulp + Bower + Browserify

I just spend a few hours trying to use TypeScript in my Gulp task, so it can be used also with browserify and bower modules. Now when I see the result it's really easy.

Change default naming strategy to underscore in Doctrine

I just realized that using default (CamelCase) naming strategy for database is not a good thing. There are some inconsistencies, sometimes WTFs and sometimes it's just really stupid. Especially with Doctrine and MySQL....

Deploying Jekyll website with GitLab

Deploying Jekyll website is really simple. Just download latest version and build it. But you can still come across some problems, just like me..

Jekyll is awesome

Recently I began using Jekyll and I must say, this is something I really wanted...

I always wanted to write some blog, but definitely not with classic tools. What is the first thing that comes to your mind when someone says that he or she wants a new blog? WordPress, Blogger or some other tool?