0
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-19 23:42:08 +01:00
forgejo/modules/templates
wxiaoguang 36c0840cf1
Merge template functions "dict/Dict/mergeinto" ()
One of the steps in 


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 ......
2023-04-07 09:39:08 -05:00
..
eval Use a general Eval function for expressions in templates. () 2023-04-07 21:25:49 +08:00
vars
base.go
dynamic.go
helper.go Merge template functions "dict/Dict/mergeinto" () 2023-04-07 09:39:08 -05:00
helper_test.go
htmlrenderer.go
mailer.go
static.go
templates_bindata.go
util.go Merge template functions "dict/Dict/mergeinto" () 2023-04-07 09:39:08 -05:00
util_test.go Merge template functions "dict/Dict/mergeinto" () 2023-04-07 09:39:08 -05:00