Merge pull request #146 from sjswerdlow/j2Patch
Adding support for the j2 format.
This commit is contained in:
2
main.go
2
main.go
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user