Fix rendering in slim templates.
Merge pull request #4 from scaryzet/fixes_for_slim

Fix rendering in slim templates