Skip to content

Instantly share code, notes, and snippets.

View Tom32i's full-sized avatar

Thomas Jarrand Tom32i

View GitHub Profile
@Tom32i
Tom32i / template.html.twig
Last active December 16, 2015 03:49
Twig : isoler un template lors de l'include.
{# template.html.twig #}
{% set title = 'Mon titre' %}
{% set username = 'Jane Doe' %}
<h1>{{ title }}</h1>
<p>{{ username }}</p>
{% include 'user.html.twig' with {title: username} only %}
@Tom32i
Tom32i / gist:4984807
Created February 19, 2013 10:44
Sublime Text 2 : Indent config for french keyboards.
[
{ "keys": ["super+)"], "command": "indent" },
{ "keys": ["super+("], "command": "unindent" }
]