Log1x / acf-composer

Compose ACF Fields, Blocks, Widgets, and Option Pages with ACF Builder on Sage 10.
https://github.com/Log1x/acf-composer
MIT License
414 stars 56 forks source link

Feature request: Templates for ACF Blocks #103

Closed SergiArias closed 2 years ago

SergiArias commented 2 years ago

I am constantly composing blocks for ACF, and removing parts that I don't normally use. So I think it would be nice to be able to store a few templates and compose from there. Right now I am editing src/Console/stubs/block.construct.stub in each project to use my own template, but I think it's not as elegant as it should be.

Log1x commented 2 years ago

What directory structure do you have in mind for this?

SergiArias commented 2 years ago

For me, what it would make sense is a folder in config called acf-composer-templates. Or else, an array of options inside poet, be it to choose which methods to generate or directly point to the stub file if we want something more customized.

What do you think about it?

mrmadhat commented 2 years ago

What directory structure do you have in mind for this?

How about config/stubs/acf-composer?