Last active
December 19, 2017 10:05
-
-
Save chy4egg/779ba9747382c0f03a3a8ecdf266f730 to your computer and use it in GitHub Desktop.
Pug mixin
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
//- Declaration | |
mixin pet(name) | |
li.pet= name | |
//- Use | |
ul | |
+pet('cat') | |
+pet('dog') | |
+pet('pig') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment