projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
7bd93c62dff6b45d82894b76a2672c6b6c7bbd7c
[yaffs-website]
/
vendor
/
twig
/
twig
/
test
/
Twig
/
Tests
/
Fixtures
/
tags
/
macro
/
import_with_reserved_nam.test
1
--TEST--
2
"from" tag with reserved name
3
--TEMPLATE--
4
{% import 'forms.twig' as macros %}
5
6
{{ macros.parent() }}
7
--TEMPLATE(forms.twig)--
8
--DATA--
9
return array()
10
--EXCEPTION--
11
Twig_Error_Syntax: "parent" cannot be called as macro as it is a reserved keyword in "index.twig" at line 4.