Twig has an extensive online documentation for template developers http://twig.sensiolabs.org/doc/templates.html. For security reasons, only a subset of Twig is allowed in templates. Some tags and functions are blocked because they might open up security vulnerabilities.
Blocked Twig tags
Blocked Twig functions
Blocked Twig filters
No filters are blocked right now, but that may change if security issues arise.