fixed pongo2 replaceFilter
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sebastian Frank 2022-02-28 10:51:20 +01:00
parent 5cdc4203b7
commit f2ef597883
Signed by: apairon
GPG Key ID: A0E05A8199CE3F57
4 changed files with 41 additions and 1 deletions

36
.air.toml Normal file
View File

@ -0,0 +1,36 @@
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"
[build]
bin = "./tmp/main"
cmd = "go build -o ./tmp/main ./cmd/mark2web"
delay = 1000
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
exclude_file = []
exclude_regex = ["_test.go"]
exclude_unchanged = false
follow_symlink = false
full_bin = ""
include_dir = []
include_ext = ["go", "tpl", "tmpl", "html"]
kill_delay = "0s"
log = "build-errors.log"
send_interrupt = false
stop_on_error = true
[color]
app = ""
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"
[log]
time = false
[misc]
clean_on_exit = false
[screen]
clear_on_rebuild = false

View File

@ -8,7 +8,10 @@ import (
func init() {
err := pongo2.ReplaceFilter("markdown", MarkdownFilter)
if err != nil {
panic(err)
err = pongo2.RegisterFilter("markdown", MarkdownFilter)
if err != nil {
panic(err)
}
}
newFilters := map[string]pongo2.FilterFunction{

1
tmp/build-errors.log Normal file
View File

@ -0,0 +1 @@
exit status 1

BIN
tmp/main Executable file

Binary file not shown.