From 685dcee77482ef0ff728b2a35f1451ccdf3c2b64 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Sat, 4 Nov 2023 10:16:04 -0700 Subject: [PATCH] Remove mention of salixmd until yuin/goldmark#426 is resolved --- README.md | 5 ----- examples/macro/include.go | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e0e0bca..4666a51 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ Salix's syntax is similar to Leaf and (in my opinion at least), it's much more f - [Ternary Expressions](#ternary-expressions) - [Coalescing operator](#coalescing-operator) - [The `in` operator](#the-in-operator) -- [Markdown](#markdown) - [Acknowledgements](#acknowledgements) ## Examples @@ -218,10 +217,6 @@ Salix's `in` operator allows you to check if a slice or array contains an elemen #("H" in "Hello") ``` -## Markdown - -Salix doesn't include a markdown rendering tag because I didn't want any non-stdlib dependencies. Instead, there's an implementation of a markdown salix tag using [goldmark](https://github.com/yuin/goldmark) at [go.elara.ws/salixmd](https://pkg.go.dev/go.elara.ws/salixmd). - ## Acknowledgements - [Pigeon](https://github.com/mna/pigeon): Salix uses a [PEG](https://en.wikipedia.org/wiki/Parsing_expression_grammar) parser generated by pigeon. Salix would've been a lot more difficult to write without it. diff --git a/examples/macro/include.go b/examples/macro/include.go index b59dfa0..28b96c5 100644 --- a/examples/macro/include.go +++ b/examples/macro/include.go @@ -57,9 +57,11 @@ func main() { vars["name"] = name } + n := time.Now() err = tmpl. WithVarMap(vars). Execute(w) + println(time.Since(n).String()) if err != nil { log.Println(err) w.WriteHeader(http.StatusInternalServerError)