Tag Templates

I was thinking it would be nice to have some enhanced functionality for tags I use. I was thinking it would be nice to be able to define things like:

  • Attributes associated to a tag
    • They would get automatically inserted with the tag (filled or unfilled)
  • Field extractions for a tag
  • custom tag styles
  • Concrete tag pages (vs the currently ephemeral :pushpin: <tag> page) as well as a tag index page to see all your tags

I was thinking it would be the most inline with how SB operates to be able to leverage templates for this. Here are some examples that I thought might be possible ways for the templates to look:
Purely via Frontmatter

- - - frontmatter
description: “A description of the tag”
tags: template
hooks.tag:
  tagName: myTag || {{@page.name}}
  attributes:
    - attribute1
    attribute2: “some value”
  color: orange
  style: “border: 3px dashed limegreen; font-weight: bolder”
  styleClass: some-class-defined-in-space-script
- - - 

More template based

- - - frontmatter
description: “A description of the tag”
tags: template
hooks.tag:
  tagName: myTag || {{@page.name}}
- - -
```space-style
.sb-hashtag[data-tag-name=“{{tagName}}] {
  color: orange;
  border: 3px dashed limegreen;
  font-weight: bolder
}
```
#{{tagName}} [attribute1: |^|] [attribute2: “some value”]

Looking for peoples thoughts on this…