patternlab-node: PL does not support twig extends
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 : https://github.com/pattern-lab/patternlab-node/issues/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
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 15 (10 by maintainers)
Commits related to this issue
- wip - need PHP installed locally part of https://github.com/pattern-lab/patternlab-node/issues/554 — committed to pattern-lab/patternengine-node-twig by bmuenzenmeyer 7 years ago
- fix pathing based on previous work — committed to pattern-lab/patternengine-node-twig by bmuenzenmeyer 7 years ago
- wip - need PHP installed locally part of https://github.com/pattern-lab/patternlab-node/issues/554 — committed to pattern-lab/patternlab-node by bmuenzenmeyer 7 years ago
This is supported in package
@pattern-lab/engine-twigsince version 5.8.0https://github.com/pattern-lab/patternlab-node/blob/dev/CHANGELOG.md#580-2020-04-03
Unfortunately, I doubt it/
Our initial contributor to the Twig engine has not been seen in a while
Cross - linking to https://github.com/pattern-lab/patternlab-node/issues/285