Skip to content

Underscore-hidden patterns must be callable by shorthand partial style #469

@geoffp

Description

@geoffp

I am using Pattern Lab Node v2.5.1 on Mac, with Node 4.4.7, using the Gulp Edition.

In Handlebars, and possibly other engines, we are currently off-spec with our handling of callable patterns hidden by underscore-prefix.

Expected Behavior

Given a Mustache pattern at atoms/00-somegroup/_00-foo.mustache I should be able to call it as {{> atoms-foo}}.

Actual Behavior

I believe one could call this underscored pattern partial today, but you'd have to call it in the nasty longform way, as in: {{> atoms-_00-foo}}. This is the recommended workaround until we change to the correct way.

TODO:

  • Reproduce and fix if necessary in Handlebars
  • Reproduce and fix if necessary in Underscore
  • Reproduce and fix if necessary in Twig

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions