Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

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:

Code

-- 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