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

Feature Request: subdirectories in template/snippets #101

Open
lastobelus opened this issue Oct 16, 2017 · 1 comment
Open

Feature Request: subdirectories in template/snippets #101

lastobelus opened this issue Oct 16, 2017 · 1 comment

Comments

@lastobelus
Copy link

Proposal:

Allow organizing snippets & templates into folders. When uploading, upload files using a BEM-style naming convention:

Given

snippets
    head
        meta-tags.liquid
        collection-meta-tags.liquid
    products
         loop.liquid
         thumbnail.liquid

the following would be uploaded to shopify:

snippets/head__meta-tags.liquid
snippets/head__collection-meta-tags.liquid
snippets/products__loop.liquid
snippets/products__thumbnail.liquid

(I can work on this if someone is willing to point me in the right direction by suggesting a general approach)

@nddery
Copy link
Contributor

nddery commented Oct 17, 2017

You could look into file-loader name option. Not sure what's the parameter(s) it receives but maybe there's something to do there.

So instead of passing the path and name as we currently do, you could BEM-ize the path/name.

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

2 participants