Skip to content

_00-head.twig is not displayed correctly using the twig (js) engine. #1201

Closed
@shannonsumner-zz

Description

@shannonsumner-zz
node --version
v12.16.1

I am using Pattern Lab Node vX.X.X on Windows | Mac | Linux, with Node vX.X.X, using a Gulp | Grunt | Vanilla | Custom Edition.

I am using Pattern Lab Node 'v5.9.3' on Mac with Node 'v12.16.1', using a Vanilla Edition with the engine twig installed and twig set to the pattern extension.

npm run pl:version

> pattern-lab-twig-js@1.0.0 pl:version /Users/ssumner/Documents/GitHub/pattern-lab-twig-js
> patternlab --version

5.9.3 (Pattern Lab Node Core version: 5.9.3)
Expected Behavior

_00-head.twig would be displayed correctly.

Actual Behavior

_00-head.twig is not displayed correctly.

Steps to Reproduce
npm create pattern-lab
? Please specify a directory for your Pattern Lab project. ./
? What templating language do you want to use with Pattern Lab? None
? What initial patterns do you want included in your project? Blank project (no patterns)
? Are you happy with your choices? (Hit enter for YES)? Yes
✔ ⊙ patternlab → Yay ☺. Pattern Lab Node was successfully initialized in ./
npm install @pattern-lab/engine-twig --save
npm install --save @pattern-lab/cli @pattern-lab/core @pattern-lab/uikit-workshop

Add the following to package.json:

    "test": "echo \"Error: no test specified\" && exit 1",
    "pl:build": "patternlab build --config ./patternlab-config.json",
    "pl:help": "patternlab --help",
    "pl:install": "patternlab install --config ./patternlab-config.json",
    "pl:serve": "patternlab serve --config ./patternlab-config.json",
    "pl:version": "patternlab --version"

Create empty source directory structure:

source$ find .
.
./favicon.ico
./css
./css/pattern-scaffolding.css
./css/style.css
./images
./_macros
./_macros/.gitkeep
./js
./_patterns
./_patterns/00-atoms
./_patterns/00-atoms/01-text
./_patterns/00-atoms/01-text/00-headings.twig
./_patterns/01-molecules
./_patterns/02-organisms
./_patterns/03-templates
./_patterns/04-pages
./_meta
./_meta/_00-head.twig
./_meta/_00-head.mustache
./_meta/_01-foot.twig
./_meta/_01-foot.mustache
./_layouts
./_layouts/.gitkeep
./_annotations
./_annotations/annotations.js
./_data
./_data/listitems.json
./fonts

run npm install && npm run pl:build && npm run pl:serve

Update patternExtension to twig in patternlab-config.json.

pattern-lab-twig-js.zip

Screen Shot 2020-05-06 at 3 29 54 PM

Metadata

Metadata

Assignees

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