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

WIP: Added a few ugly testcases #138

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JensHeinrich
Copy link

Only added tests right now

includes #74

@JensHeinrich
Copy link
Author

JensHeinrich commented May 5, 2022

The problem seems to be the interweaving in the AST;
technically there are two AST here I think:

  • the XML/HTML one
  • the jinja one

@JensHeinrich
Copy link
Author

So I just had an weird idea:
Maybe a structure representing an construct yielding an opening tag and a structure yielding a closing tag could be created to accomodate the content of the those conditional blocks
then the optional block could use a list of tuples of condition and opening tag and a list of tuples of condition and closing tag to define this
having these lists a closing tag like in test_different_container_openings(self) could probably be implemented too

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

Successfully merging this pull request may close these issues.

None yet

1 participant