+
Skip to content

Document specifying a component as collator #81

@mihkeleidast

Description

@mihkeleidast

It's possible to specify a component as collator, but it is not documented. See frctl/fractal#593 for reference.

For example, in config:

module.exports = {
    collated: true,
    collator: '@my-collator',
    variants: [...]
};

And my-collator.hbs:

{{#each _variants}}
    {{{ this.markup }}}
    {{ this.item }}
{{/each}}

Needs to mention:

  • _variants special variable and its contents.
  • collator.hbs seems to be a "special" collator name that is automatically applied for a collection etc.

This should allow full customization of the collator, including using the path helper, since it'll be rendered through the engine.

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载