Use FrontMatter for discovery

Created on 4 February 2023, almost 2 years ago
Updated 14 February 2023, almost 2 years ago

Problem/Motivation

@andypost in #3313520-75: Single directory components in core :
Maybe instead of *.component.yaml we get in #3075427: Create TemplateDiscovery for plugin managers to use and start use frontMatter for discovery?

Proposed resolution

?

Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇩🇪Germany geek-merlin Freiburg, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @geek-merlin
  • 🇩🇪Germany geek-merlin Freiburg, Germany

    Imho this would be no win in practice. Frontmatter is a super tool to store a few lines closely related to the main content.
    But in this case a long list of metadata would only clutter the template.

    Or put the othdr way rounde: Yes we can store metadata in the template. And while we're at it, include css, js, and more, and advance to single-file componente. And... NO...

  • e0ipso Can Picafort

    This is something that we considered in our discussions. However we decided against it for the following reasons:

    • It is another new foreign concept on top of the components that gives us little benefit.
    • It locks us to one single template. While we might want to have alternate templates in the future for component variants.

    Unless there is an obvious benefit to this, I would lean towards keeping the familiar *.component.yml.

  • Status changed to Closed: won't fix almost 2 years ago
  • 🇩🇪Germany geek-merlin Freiburg, Germany

    As andipost does not chime in, closing.

Production build 0.71.5 2024