linkedin / css-blocks

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

Simplify block lookups for a template #507

Closed chriseppstein closed 4 years ago

chriseppstein commented 4 years ago

Now that we have synchronous block loading we don't have to go parse all the blocks just in case we might need them during template compilation.[

This also fixes a runtime error that I occured in the situation where an application doesn't have any block files.