claroline/CoreBundle — pull request #484 by arnaudbey (2014-04-02 12:49:25+00:00)
Title: add twig text_extension

I saw this in some bundles
```
{{ object.str | length > 40 ? object.str | slice(0, 40) ~ '...' :object.str }}
```

It may be usefull to load twig text extension ( http://twig.sensiolabs.org/doc/extensions/text.html ) in the core in order to get this (and beneficiate everywhere):
```
{{ object.str | truncate(30) }}
```