Skip to content

Commit

Permalink
Merge pull request #146 from sjswerdlow/j2Patch
Browse files Browse the repository at this point in the history
Adding support for the j2 format.
  • Loading branch information
mco-gh authored Aug 1, 2023
2 parents b10ac1c + 183e474 commit 4caba19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ func licenseHeader(path string, tmpl *template.Template, data licenseData) ([]by
lic, err = executeTemplate(tmpl, data, "<!--", " ", "-->")
case ".php":
lic, err = executeTemplate(tmpl, data, "", "// ", "")
case ".j2":
lic, err = executeTemplate(tmpl, data, "{#", "", "#}")
case ".ml", ".mli", ".mll", ".mly":
lic, err = executeTemplate(tmpl, data, "(**", " ", "*)")
default:
Expand Down

0 comments on commit 4caba19

Please sign in to comment.