Skip to content

Commit

Permalink
feat: add support for twig files
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlatz committed Oct 24, 2024
1 parent 953f02a commit b897fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ func generateHeader(path string, tmpl []byte) []byte {
case ".php":
header = doGenerate(tmpl, "", "// ", "")
put(header, []string{".php"})
case ".j2":
case ".j2", ".twig":
header = doGenerate(tmpl, "{#", "", "#}")
put(header, []string{".j2"})
put(header, []string{".j2", ".twig"})
case ".ml", ".mli", ".mll", ".mly":
header = doGenerate(tmpl, "(**", " ", "*)")
put(header, []string{".ml", ".mli", ".mll", ".mly"})
Expand Down

0 comments on commit b897fa2

Please sign in to comment.