- Howtos
- Common design challenges
- Add several of the same snippets with the sprinkle macro
Add several of the same snippets with the sprinkle macro
Adding multiple snippets at the same time results in a lot of repetitive code.
It is better to use the sprinkle
macro instead:
Javascript
macro('sprinkle', {
snippet: 'notch',
on: [
'neck',
'shoulder',
'armholePitch',
'chestPocketBottomLeft',
'chestPocketBottomRight',
'lapelBreakPoint',
'notchMax',
'notch',
'innerPocketLeft',
'innerPocketRight',
'frontPocketTopLeft',
'frontPocketBottomLeft',
'armholeHollow',
'waist'
]
})
TIP
Refer to the sprinkle macro documentation for details on how to use this macro