This an example collection loader for the upcoming, major refactor of templates.
Create a collection with app.create()
or with new Collection()
.
const Collection = require('templates/lib/collection');
const collection = new Collection();
collection.use(loader());