Created
August 13, 2015 08:13
-
-
Save fd/f6bbb394b7b85b267a86 to your computer and use it in GitHub Desktop.
css-modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.title { | |
// ... | |
} | |
.body { | |
// ... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 class="{{ fooBar.css.title }}">{{ fooBar.title }}</h1> | |
<div class="{{ fooBar.css.body }}">{{ fooBar.body }}</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import CSS from './mod.css!'; | |
import TMPL from './mod.html!'; | |
@State({ template:Url: TMPL }) | |
class FooBarController { | |
css = CSS; | |
title = "Hello Wolrd!" | |
body = "Some body text." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment