Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TagBlock elements missing in nodeList #155

Open
tacman opened this issue Oct 18, 2021 · 2 comments
Open

TagBlock elements missing in nodeList #155

tacman opened this issue Oct 18, 2021 · 2 comments

Comments

@tacman
Copy link

tacman commented Oct 18, 2021

I'm working on a Liquid-to-Twig converter, and am very appreciative of this library, thanks for all the work you've done on it.

If the source is

{% comment %} This is the child template. {% endcomment %}
{% extends "blocks/child.tpl" %}

{% block content %}
    	<h2>Entry one</h2>
    <p>This is my first entry.</p>
{% endblock %}

and I run

                $liquidTemplate = $liquid->parse($liquidSource);
               dump($liquidTemplate->getRoot()->getNodelist());

I don't get the "TagBlock" element.

image

Is there a way to access it?

@sanmai
Copy link
Collaborator

sanmai commented Nov 2, 2021

If you feel like fixing this issue with a PR, please be our guest.

@tacman
Copy link
Author

tacman commented Nov 2, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants