Skip to content

Instantly share code, notes, and snippets.

@quickstep25
Created August 12, 2020 08:00
Show Gist options
  • Save quickstep25/4dd01c269c1f9989c43bbab450d190fd to your computer and use it in GitHub Desktop.
Save quickstep25/4dd01c269c1f9989c43bbab450d190fd to your computer and use it in GitHub Desktop.
jade mixins for knockout.js virtual element. https://github.com/visionmedia/jade/pull/958
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