Skip to content

Allow dynamic updates to MarkBind Templates #2387

@lhw-1

Description

@lhw-1

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

#2384, #2385, #2386

What is the area that this feature belongs to?

No response

Is your feature request related to a problem? Please describe.

With the addition of new templates in #2384, #2385, and #2386, we should look into ways to dynamically update specific sections of MarkBind Templates as MarkBind constantly updates (as mentioned here). This will require us to identify which sections of templates are more prone to changes (e.g. MarkBind components) and which sections are not (e.g. Template-specific content).

Describe the solution you'd like

There are existing .njk files for site generation (mainly used for init --convert), e.g. packages/core/src/Site/siteConvertLayout.njk. We can consider extending this idea to newer templates to allow for dynamic site generation, meaning that we will have fewer files to be edited. However, this will likely be limited mainly to the default.md and other .md files for the templates.

Regardless of whether the above is feasible or not, long-term maintainability will need to be considered in the future as we continue to add more templates.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions