How would I go about generating a keystone list name programmatically?
I'm looking for something like this...
var Font = new keystone.List('Font', {
// ↓↓↓ LOOK ↓↓↓ HERE ↓↓↓
map: { name: 'typefaceName + weightName' },
track: true,
schema: { collection: 'Font' }
});
Font.add({
typefaceName: { type: String, initial: true, required: true},
weightName: { type: String , initial: true, required: true}
});
Which would generate the name, like so.