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

Reduced Template state #3

Merged
merged 3 commits into from
Sep 1, 2023
Merged

Reduced Template state #3

merged 3 commits into from
Sep 1, 2023

Conversation

cappuc
Copy link
Contributor

@cappuc cappuc commented Sep 1, 2023

  • Removed ParseContext from tag state, so its no longer available during render phase
  • Update render tag to parse partial template in the parse phase instead of render phase
  • Share partials cache between parse context and render context (saving them in the root Template after parsing)
  • Renamed parse method of TemplateFactory to parseString and added parseTemplate method (it parses a template from filesystem)

@cappuc cappuc merged commit 437f138 into main Sep 1, 2023
@cappuc cappuc deleted the refactoring branch September 4, 2023 10:33
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