Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming and prefixing #1

Open
carolinan opened this issue May 23, 2019 · 0 comments
Open

Naming and prefixing #1

carolinan opened this issue May 23, 2019 · 0 comments

Comments

@carolinan
Copy link
Owner

carolinan commented May 23, 2019

Examples consists of 3 files: the CSS file, the JS file and the PHP file which enqueues the files.

Files could either be prefixed with their block name (slug) to separate them more easily,
-or they could all be named block-style.js and block-style.css and only be separated by placing them in their respective folders, and by the file headers.

By not adding a prefix to the JS and CSS file names, and by not adding a style specific prefix to the file handles, the PHP file could essentially be removed from the examples, because all PHP files would be identical.

Instead an example PHP file could be placed in the main folder.

The decision needs to be made with a possible plugin generator in mind, where the PHP file would not be used anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant