hugo/tpl/data
Cameron Moore 08c0de5cc3 tpl/data: Clean up data namespace
- Move the main GetCSV and GetJSON into data.go.
- Add error returns to GetCSV and GetJSON.
- Add http client to Namespace for test mocking.
- Send accept headers on remote requests. Fixes #3395
- Return an error on non-2XX HTTP response codes and don't retry.
- Move cache tests to cache_test.go.
2017-05-02 09:18:41 +02:00
..
cache.go tpl/data: Move cache logic to separate file 2017-05-02 09:18:41 +02:00
cache_test.go tpl/data: Clean up data namespace 2017-05-02 09:18:41 +02:00
data.go tpl/data: Clean up data namespace 2017-05-02 09:18:41 +02:00
data_test.go tpl/data: Clean up data namespace 2017-05-02 09:18:41 +02:00
init.go tpl: Add docshelper for template funcs 2017-05-01 21:44:15 +02:00
init_test.go tpl: Add basic tests for all namespace init funcs 2017-05-02 00:07:33 +02:00
resources.go tpl/data: Clean up data namespace 2017-05-02 09:18:41 +02:00
resources_test.go tpl/data: Clean up data namespace 2017-05-02 09:18:41 +02:00