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

Integration with JS client #3

Merged
merged 3 commits into from
Nov 30, 2023
Merged

Integration with JS client #3

merged 3 commits into from
Nov 30, 2023

Conversation

tg666
Copy link
Contributor

@tg666 tg666 commented Nov 29, 2023

No description provided.

- added possibility to render custom attributes on a banner tag
- added rendering of data attribute `data-amp-banner-external`
- fixed fingerprint resolving (now compatible with JS client)
- added and fixed tests
@coveralls
Copy link

coveralls commented Nov 29, 2023

Pull Request Test Coverage Report for Build 7041640122

  • 180 of 201 (89.55%) changed or added relevant lines in 26 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.5%) to 93.828%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Renderer/AmpBannerExternalAttribute.php 18 20 90.0%
src/Exception/RendererException.php 0 5 0.0%
src/Bridge/Latte/RendererProvider.php 40 54 74.07%
Totals Coverage Status
Change from base Build 7015848549: -0.5%
Covered Lines: 1201
Relevant Lines: 1280

💛 - Coveralls

- added rendering mode `client_side`
- added method `RendererBridgeInterface::renderClientSide()` and implementations with templates for `phtml` and `latte` bridges
- added method `RendererInterface::renderClientSide()`
- removed prefix `Template*` from constants in class `Templates`
- added possibility to define alternative rendering modes in `RendererProvider`
- added option `alternative_rendering_modes` in `AmpClientLatteExtension`
- added option `renderer.templates.client_side` in `AmpClientExtension`
- added possibility to switch rendering mode in macro `{banner}` by specifying the argument `mode`
- added and fixed tests
- updated docs
@tg666 tg666 merged commit b62fec2 into main Nov 30, 2023
7 checks passed
@tg666 tg666 deleted the feature/js-integration branch November 30, 2023 03:45
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