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

Added TemplateFactory #2

Merged
merged 2 commits into from
Aug 31, 2023
Merged

Added TemplateFactory #2

merged 2 commits into from
Aug 31, 2023

Conversation

cappuc
Copy link
Contributor

@cappuc cappuc commented Aug 31, 2023

  • Added TemplateFactory class
  • Removed static setup methods from Template
  • Moved global instances (TagRegistry, FiltersRegistry, FileSystem, etc.) to TemplateFactory
  • Filters classes must implement IsContextAware interface to receive the current render Context (FiltersProvider class can be extended to automatically have context)

@cappuc cappuc merged commit f143352 into main Aug 31, 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.

1 participant