Skip to content
This repository has been archived by the owner on Feb 6, 2018. It is now read-only.

Layer should not contain absolute path #113

Open
qfox opened this issue May 18, 2017 · 0 comments
Open

Layer should not contain absolute path #113

qfox opened this issue May 18, 2017 · 0 comments

Comments

@qfox
Copy link
Contributor

qfox commented May 18, 2017

Atm BemCell.layer contains path to blocks directory. But layer is an Id of layer.

E.g. for classic scheme (${level}/${layer}.blocks/${entity.id}.${tech}) we have paths:

/levels/bem-core/common.blocks/page/page.css
/levels/bem-core/desktop.blocks/page/page.css

For modern scheme (${level}/${entity.id}@${layer}.${tech}) we have paths:

/levels/bem-core/blocks/page/page.css
/levels/bem-core/blocks/page/[email protected]

It means we should not include any absolute paths into layer and should provide level as a property of BemFile while BemCell should contains pure layer id.

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

No branches or pull requests

1 participant