-
Notifications
You must be signed in to change notification settings - Fork 399
PL does not support twig extends #554
Copy link
Copy link
Closed
Labels
Description
I am using Pattern Lab Node v2.6.1 on Mac, with Node v6.7, using the Gulp Edition.
Expected Behavior
when extending a template, it extend the template…
it is referenced here too : #285
Actual Behavior
when extending, pl make it like including
Steps to Reproduce
x.twig
foo
{% block content %}
bar
{% endblock %}
=> output foobar
y.twig
{% extends "x.twig" %}
foo
{% block content %}
baz
{% endblock %}
=> output foobar to
=> should output foobaz
z.twig
{% extends "x.twig" %}
foo
{% block content %}
{{ parent() }}
baz
{% endblock %}
=> output foobarbar
=> should output foobarbaz
Reactions are currently unavailable