26 array(
'html',
'foo.html'),
27 array(
'html',
'foo.html.twig'),
29 array(
'html',
'foo.bar.twig'),
30 array(
'html',
'foo.txt/foo'),
31 array(
'html',
'foo.txt/foo.js/'),
34 array(
'css',
'foo.css'),
35 array(
'css',
'foo.css.twig'),
36 array(
'css',
'foo.twig.css'),
37 array(
'css',
'foo.js.css'),
38 array(
'css',
'foo.js.css.twig'),
41 array(
'js',
'foo.js'),
42 array(
'js',
'foo.js.twig'),
43 array(
'js',
'foo.txt/foo.js'),
44 array(
'js',
'foo.txt.twig/foo.js'),
47 array(
false,
'foo.txt'),
48 array(
false,
'foo.txt.twig'),
static guess($name)
Guesses the best autoescaping strategy based on the file name.
testGuess($strategy, $filename)
getGuessData