osteele / liquid

A Liquid template engine in Go
https://godoc.org/github.com/osteele/liquid
MIT License
287 stars 59 forks source link

Does not replace if Bindings key is a numeric string #92

Open magiusdarrigo opened 2 months ago

magiusdarrigo commented 2 months ago

Checklist

Expected Behavior

Hello, Bob Orange!

Actual Behavior

Hello, 123!

Detailed Description

text := "Hello, {{ 123 }}!"
bindings := map[string]string{
    "123": "Bob Orange",
}
lqEngine.ParseAndRenderString(text, bindings)

Possible Solution