Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nielsdeblaauw/gutenberg-punchcutter

Quickly create dynamic WordPress Gutenberg blocks
https://github.com/nielsdeblaauw/gutenberg-punchcutter

Last synced: 4 days ago
JSON representation

Quickly create dynamic WordPress Gutenberg blocks

Awesome Lists containing this project

README

        

# gutenberg-punchcutter
Quickly create dynamic WordPress Gutenberg blocks

## Goal
Generate code for WordPress Gutenberg blocks based on configuration files. Use BEM principles to generate dynamic user content.

## Provisional example

``` yaml
blocks:
- name: quote
displayname: Quote
icon: quote
modifiers:
- name: dark
description: Use the high contrast version
type: boolean
elements:
- name: title
displayname: Title
element: h1
modifiers:
- name: muted
description: Show a muted version of the quote
type: boolean
- name: align
description: Align the element
type: select
options:
- name: left
displayname: Left
- name: right
displayname: Right
- name: content
element: p
displayname: Content
```

The following would create a block like the following:

``` html


 

Example title


 

Example content



```