Last active
January 31, 2016 11:07
-
-
Save nashibao/7889825 to your computer and use it in GitHub Desktop.
jade mixins for knockout.js virtual element.
https://github.com/visionmedia/jade/pull/958
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
mixin with(val) | |
<!-- ko with: !{val} --> | |
block | |
<!-- /ko --> | |
mixin if(val) | |
<!-- ko if: !{val} --> | |
block | |
<!-- /ko --> | |
mixin each(val) | |
<!-- ko foreach: !{val} --> | |
block | |
<!-- /ko --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
will be compiled to..