extension

Pattern Library

Repo Release Link Client Features Developer
repo 16/12-24 link Elbilforeningen block patterns Stian

Functionality

Using block patterns is a great way to get the client started with an article or a page, but adding new patterns still require some coding.

On Elbilforeningen we tried to standardize how new patterns can be added by adding a Pattern Library plugin that automatically loads and registers patterns by a pattern.json template file. Now all we need to do when the client wants a new patterns is to add a folder containing a pattern.json with metadata and pattern.html template with the raw block markup.