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

Cached template #59

Merged
merged 1 commit into from
Jul 20, 2021
Merged

Cached template #59

merged 1 commit into from
Jul 20, 2021

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented Jun 24, 2021

Updates the Template to cache the contents and returns it when template.Execute is called with no changes.

Based on resolver-run-return-data branch and depends on it being merged first.

@eikenb eikenb added the enhancement New feature or request label Jun 24, 2021
@eikenb
Copy link
Contributor Author

eikenb commented Jul 16, 2021

Updated this to have the standard Template cache the contents. I think the API is simpler and more consistent if it always returns the contents.

Copy link
Member

@lornasong lornasong left a comment

Choose a reason for hiding this comment

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

cached template changes look to me! test ❤️

CachedTemplate is a new Template that caches the content and returns it
when template.Execute is called with no changes.
@eikenb eikenb merged commit b96ca81 into master Jul 20, 2021
@eikenb eikenb deleted the cached-template branch July 20, 2021 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants