Trying to apply the DRY Principle in relation to Framework Dynamics #2040
-
|
I'm trying to wrap my head around how to apply the DRY principle in a Framework-based project. Here's my experiment Two possible generalizations 1. Inferring the TOC at build timeIn my experiment, there's a collection of monthly charts. I'd like to have a specific section for each chart listed in the TOC. AFAIU, the TOC is created at build time. So, to render it properly, I had to repeat all the sections in the md like this: Ideally, this could be rendered with a loop and using a custom 2. Sharing content between index and some parametrized routesIn my example, the main content is I tried to tinker with the config file, mapping in Bye |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Sounds like you could use a page loader to generate the page dynamically? |
Beta Was this translation helpful? Give feedback.
Sounds like you could use a page loader to generate the page dynamically?