separation of content and code #7

Open
opened 2025-11-03 17:14:42 +01:00 by puer-robustus · 1 comment
Member

When looking at e.g. the office tech dossier I wonder whether it would be worthwhile to separate the ProjectDescription.text into a separate markdown file, which is then read in the TypeScript code? Or, if TypeScript supports this, even write the complete tech dossier in Markdown with YAML frontmatter, which are then parsed in the app?

This would separate the tech dossier content from its representation and make it more reusable in other contexts, e.g. to create separate handouts as pdfs for specific audiences via e.g. pandoc?

When looking at e.g. the [office tech dossier](https://git.ngi-0.eu/tech-dossiers/ngi0-landing/src/branch/master/src/data/dossiers/office.ts) I wonder whether it would be worthwhile to separate the `ProjectDescription.text` into a separate markdown file, which is then read in the TypeScript code? Or, if TypeScript supports this, even write the complete tech dossier in Markdown with [YAML frontmatter](https://docs.github.com/en/contributing/writing-for-github-docs/using-yaml-frontmatter), which are then parsed in the app? This would separate the tech dossier content from its representation and make it more reusable in other contexts, e.g. to create separate handouts as pdfs for specific audiences via e.g. [pandoc](https://pandoc.org/)?
Owner

I think we can, but I would like to keep this idea on hold. We previously discussed, that the content creation could be done from a GUI editor and stored in a database or a pull request could be created automatically. Maybe we can brainstorm this and pick the best idea

I think we can, but I would like to keep this idea on hold. We previously discussed, that the content creation could be done from a GUI editor and stored in a database or a pull request could be created automatically. Maybe we can brainstorm this and pick the best idea
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tech-dossiers/ngi0-landing#7
No description provided.