Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fujiwara
Copy link
Collaborator

@fujiwara fujiwara commented Nov 12, 2020

When LoadWithEnv() for loading an empty file called at second time, LoadWithEnv() returns previous parsed content.

Becomes to not reuse a *text/template.Template instance on Loader.

Template.Parse("") returns a previous parsed template.
Becomes to not reuse a template instance in loader.
@fujiwara fujiwara changed the title add tests for loading empty file. Fix loading empty files. Nov 12, 2020
@fujiwara fujiwara merged commit f531ac5 into master Nov 16, 2020
@fujiwara fujiwara deleted the load-empty branch November 16, 2020 01:36
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