Support for blueprint snippets are great. To make it ācompleteā it would be great to also have blueprint groups.
Example
Here are two blueprints. Both have the exact same setup of fields, except for the last one. All of them are actually snippets to make it easy to read.
The difference between them is the hero
field in Template2
.
title: Template1
fields:
title: title
subtitle: subtitle
text: text
image: image
quote: quote
title: Template2
fields:
title: title
subtitle: subtitle
text: text
image: image
quote: quote
hero: hero
Maybe it donāt seems too bad, but having 30 fields in each and having 10 templates like this is much.
Solution - Blueprint groups
The group file
blueprints/groups/content.yaml
exists and looks like this
title: title
subtitle: subtitle
text: text
image: image
quote: quote
The blueprints
Much shorter:
title: Template1
fields:
my_group_key: content
title: Template2
fields:
my_group_key: content
hero: hero
Nested groups
If going far a group could contain other groups, nested groups. I donāt know how hard it would be to implement, but it can be good to know about the idea.
Also thoughts about something similar here: