Skip to content

Add blocks to the base and index.html templates to make it easier to extend #276

@helenb

Description

@helenb

Is your proposal related to a problem?

At the moment, if any customisation is needed to the pattern library markup, the whole template must be overridden, which then makes maintenance and upgrades potentially harder. A recent use case was adding an extra toggle to the index.html template to allow switching between site themes.

Describe the solution you'd like

  • Add some blocks at key points in the base or index.html templates to allow customisation
  • Allow inclusion of custom CSS and JS files

Be able to override the relevant parts of the templates rather than the complete markup.

Describe alternatives you've considered

The only other alternative is to completely override the whole template file in your build.

Additional context

(Write your answer here.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions