hugo/tpl/collections
Anton Harniakou 908692fae5 Support nested keys/fields with missing values with the where function
Before this commit `where` would produce an error and bail building the
site. Now, `where` simply skips an element of a collection and does not
add it to the final result.

Closes #5637
Closes #5416
2019-02-06 19:53:34 +01:00
..
append.go common/maps: Improve append in Scratch 2018-10-08 12:30:50 +02:00
append_test.go common/maps: Improve append in Scratch 2018-10-08 12:30:50 +02:00
apply.go common/maps: Improve append in Scratch 2018-10-08 12:30:50 +02:00
apply_test.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
collections.go tpl: Add godoc packages comments 2018-11-30 08:56:30 +01:00
collections_test.go Run gofmt -s 2018-10-24 00:12:32 +02:00
complement.go tpl/collections: Add collections.SymDiff 2018-11-06 16:51:49 +01:00
complement_test.go tpl/collections: Properly handle pointer types in complement/symdiff 2018-11-07 09:29:13 +01:00
index.go tpl: Add template function namespaces 2017-04-30 10:56:38 +02:00
index_test.go all: gofmt -s 2017-08-07 20:03:15 +02:00
init.go tpl/collections: Add collections.SymDiff 2018-11-06 16:51:49 +01:00
init_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
reflect_helpers.go tpl/collections: Properly handle pointer types in complement/symdiff 2018-11-07 09:29:13 +01:00
sort.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
sort_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
symdiff.go tpl/collections: Add collections.SymDiff 2018-11-06 16:51:49 +01:00
symdiff_test.go tpl/collections: Properly handle pointer types in complement/symdiff 2018-11-07 09:29:13 +01:00
where.go Support nested keys/fields with missing values with the where function 2019-02-06 19:53:34 +01:00
where_test.go Support nested keys/fields with missing values with the where function 2019-02-06 19:53:34 +01:00