Neopolitan: Data Content Types

The other category of content types is those based off data. The two types of data I'm working with are JSON and YAML. Implementaiton is up to the rendering engine Other formats can be made to work as well.

I treat the data content types as components. The section header defines what type of component and the rendering engine expects a payload that matches the defined format.

For example:

-- card

{
  "first_name": "Alan",
  "last_name": "Smith", 
  "website": "alanwsmith.com",
  "mastodon_url": "https://hachyderm.io/deck/@TheIdOfAlan",
  "mastodon_name": "@TheIdOfAlan"
}

This data gets passed directly in to the rendering engine which, in my case, looks for a card template and uses the JSON to create a "wc-card" web component with the details filled in

~ fin ~