Skip to content

Conversation

@VilleHakli
Copy link

I was updating FluentEmail to latest version and came a cross an issue which this PR hopefully fixes.

In Fluid.Core 1.x you could register custom tags using a static class which meant that one could easily add those e.g. in startup class. However Fluid.Core 2.x changed how tags are handled and I couldn't find any other way to configure those than to call RegisterXYZ method on FluidParser. As the parser instance used by FluentEmail is created in LiquidRenderer there is no way to configure it from app using FluentEmail. This PR adds a new option to configure the parser after it is created.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@JohnCampionJr
Copy link

This is great, thank you! I will review and merge ASAP

@JohnCampionJr JohnCampionJr changed the title Allow configuring Liquid parser feat: allow configuring Liquid parser Nov 29, 2023
@JohnCampionJr JohnCampionJr merged commit fb926fb into jcamp-code:master Nov 29, 2023
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