Skip to content

Update london:body-class.js#8

Open
donwojtallo wants to merge 3 commits intometeor-london:masterfrom
donwojtallo:master
Open

Update london:body-class.js#8
donwojtallo wants to merge 3 commits intometeor-london:masterfrom
donwojtallo:master

Conversation

@donwojtallo
Copy link

Add multiple classes for Iron Router. Replace dot with underscore.

Add multiple classes for Iron Router. Replace dot with underscore.
@donwojtallo
Copy link
Author

This is an alternative approach to this pull request: #7
I avoid using dot in class names (I knot I could escape dot with backslash i CSS)
and I prefer using '_' instead of '-', because my project have paths like /user-management/settings. Additionally this code generates classes for all parent directories.
Eg. for url='/page/subpage/another-subpage'
it returns 'page page_subpage page_subpage_another-subpage'

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

Successfully merging this pull request may close these issues.

2 participants