Adding support for the j2 format. See: https://tedboy.github.io/jinja2/templ5.html

This commit is contained in:
sjswerdlow
2023-07-25 16:24:50 +00:00
parent b10ac1c128
commit 183e474cde

View File

@@ -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: