use regexputil

This commit is contained in:
Stanislav Seletskiy
2019-08-08 23:41:26 +03:00
parent 559b913900
commit 6b83d140d5
5 changed files with 46 additions and 26 deletions

View File

@@ -40,7 +40,7 @@ func macros(templates *template.Template) ([]macro.Macro, error) {
return []byte(strings.Join(line, "\n"))
}
macros, _, err := macro.LoadMacros(
macros, _, err := macro.ExtractMacros(
[]byte(text(
`<!-- Macro: @\{([^}]+)\}`,
` Template: ac:link:user`,