You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/templates
wxiaoguang 36c0840cf1
Merge template functions "dict/Dict/mergeinto" (#23932)
One of the steps in #23328


Before there were 3 different but similar functions: dict/Dict/mergeinto

The code was just copied & pasted, no test.

This PR defines a new stable `dict` function, it covers all the 3 old
functions behaviors, only +160 -171


Future developers do not need to think about or guess the different dict
functions, just use one: `dict`

Why use `dict` but not `Dict`? Because there are far more `dict` than
`Dict` in code already ......
2 years ago
..
eval Use a general Eval function for expressions in templates. (#23927) 2 years ago
vars Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Implement FSFE REUSE for golang files (#21840) 2 years ago
dynamic.go Implement FSFE REUSE for golang files (#21840) 2 years ago
helper.go Merge template functions "dict/Dict/mergeinto" (#23932) 2 years ago
helper_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
htmlrenderer.go Improve template error reporting (#23396) 2 years ago
mailer.go Implement FSFE REUSE for golang files (#21840) 2 years ago
static.go Implement FSFE REUSE for golang files (#21840) 2 years ago
templates_bindata.go Implement FSFE REUSE for golang files (#21840) 2 years ago
util.go Merge template functions "dict/Dict/mergeinto" (#23932) 2 years ago
util_test.go Merge template functions "dict/Dict/mergeinto" (#23932) 2 years ago