Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Replacing mustache with twig in node edition of patternlab? #2

@bmiller59

Description

@bmiller59

Hi. I am using Pattern Lab Node v2.0.0 on Mac, using the gulp edition.

I am trying to get patternlab gulp node set up to use twig rather than mustache since we are working towards a wordpress theme using twig but use gulp for our front end workflow.

I npm installed patternengine-node-twig and then manually dropped in the source files from starterkit-twig-demo and fired up gulp patternlab:serve but I got a lot of "Invalid template!" errors during build.

Error detail: [TypeError: Invalid template! Template should be a "string" but "undefined" was given as the first argument for mustache#render(template, view, partials)]

Can you sketch out the additional config changes to get patternlab node edition working with twig templates instead of mustache templates?

I appreciate it.

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