A single page, that can render html, json and csv all in one go!

Explanation of the frontmatter:

  • The route has three options, meaning it accepts all of the following url:
  • format: csv, json: This tells the page to also accepts csv and json formats
  • the route needs to be setup as static routes (namely one line for each). Doing it with a dynamic route route: /content.[csv|json]? doesn't work (yet). A static route is a route without any wildcards [...]. The default format is the format you specify in the page filename, aka content.html.php, default format here is html
List of articles