We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Test:
func TestMustacheRenderPartials(t *testing.T) { expected := "header\n\n\tline 1\n\tline 2\n\nfooter\n" staticProvider := &mustache.StaticProvider{ Partials: map[string]string{ "body": strings.Join([]string{ "\tline 1", "\tline 2", }, "\n"), }, } actual, err := mustache.RenderPartials( "header\n\n{{> body}}\n\nfooter\n", staticProvider, map[string]string{}, ) assert.NoError(t, err) assert.Equal(t, expected, actual) }
I'm expecting there to be two newlines after replacing {{> body}} in the template but there's only one newline after that replacement.
{{> body}}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Test:
I'm expecting there to be two newlines after replacing
{{> body}}
in the template but there's only one newline after that replacement.The text was updated successfully, but these errors were encountered: