Skip to content

Conversation

@line-o
Copy link
Member

@line-o line-o commented Apr 9, 2025

Depend on upcoming templating v1.2.0 and make use of its new capabilities.

  • Rendered HTML will no longer be cluttered with data-template attributes.
  • Legacy class-syntax for templates is no longer allowed
  • various smaller improvements

@line-o line-o force-pushed the deps/templating branch from 2731aee to 62035a5 Compare April 9, 2025 17:12
- refactor for readability
- make use of newer templating features
  - filter templating attributes from rendered HTML
  - disallow legacy class-syntax
- remove unnecessary try-catch from lookup function which is now named, too
@line-o line-o changed the title [ignore] bump templating to 1.2.0 Refactor view module Apr 9, 2025
@line-o line-o requested review from a team April 9, 2025 17:39
@line-o
Copy link
Member Author

line-o commented Apr 9, 2025

Turns out that templating v1.2.0 had to be published to public-repo first. This is done now.

Copy link
Contributor

@duncdrum duncdrum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please have a look at the failing search test

@line-o
Copy link
Member Author

line-o commented Apr 10, 2025

See this is why we have tests:

<input class="form-control templates:form-control" ...>

must now be

<input class="form-control" data-template="templates:form-control" ...>

@line-o line-o requested a review from duncdrum April 10, 2025 00:31
Copy link
Contributor

@duncdrum duncdrum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @line-o looking good now.

@duncdrum duncdrum merged commit 0d7f107 into eXist-db:master Apr 10, 2025
2 checks passed
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.

2 participants