Skip to content

Commit

Permalink
Merge pull request #595 from twpayne/fix-594
Browse files Browse the repository at this point in the history
Include relative path in template name
  • Loading branch information
twpayne committed Feb 12, 2020
2 parents 37096b0 + 23bda0a commit c11e4c9
Show file tree
Hide file tree
Showing 4 changed files with 814 additions and 806 deletions.
10 changes: 10 additions & 0 deletions cmd/apply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ func TestApplyCommand(t *testing.T) {
},
},
},
{
name: "partial_template_in_subdir",
root: map[string]interface{}{
"/home/user/.local/share/chezmoi": map[string]interface{}{
"dir/file.tmpl": `{{ template "foo" }}{{ template "bar/foo" }}`,
".chezmoitemplates/foo": "{{ if true }}cont{{ end }}",
".chezmoitemplates/bar/foo": "{{ if true }}ents{{ end }}",
},
},
},
{
name: "multiple_templates",
root: map[string]interface{}{
Expand Down
Loading

0 comments on commit c11e4c9

Please sign in to comment.