linkedin / css-blocks

High performance, maintainable stylesheets.
http://css-blocks.com/
BSD 2-Clause "Simplified" License
6.34k stars 152 forks source link

Namespace per block. #336

Closed chriseppstein closed 4 years ago

chriseppstein commented 4 years ago

RFC: https://github.com/linkedin/css-blocks/issues/332

CSS Changes

Handlebars Template Syntax Changes

Documentation Changes

amiller-gh commented 4 years ago

One more item to add to the TODO list: Make the word block a reserved word (if it's not already... I don't think it is).

Because you reference the "default" exported block as block, the compiler should throw if you try to @export (whatever as block ) from "wherever.block.css".

amiller-gh commented 4 years ago

Alt: You can just change the keyword default to block for the import/export parser.

This may be confusing for those coming from JavaScript world though – would not recommend.