projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Security update for Core, with self-updated composer
[yaffs-website]
/
vendor
/
twig
/
twig
/
test
/
Twig
/
Tests
/
Fixtures
/
tags
/
use
/
use_with_parent.test
1
--TEST--
2
"use" tag with a parent block
3
--TEMPLATE--
4
{% extends "parent.twig" %}
5
6
{% use 'blocks.twig' %}
7
8
{% block body %}
9
{{ parent() -}}
10
CHILD
11
{{ block('content') }}
12
{% endblock %}
13
--TEMPLATE(parent.twig)--
14
{% block body %}
15
PARENT
16
{% endblock %}
17
--TEMPLATE(blocks.twig)--
18
{% block content 'BLOCK' %}
19
--DATA--
20
return array()
21
--EXPECT--
22
PARENT
23
CHILD
24
BLOCK