2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
title: Add several of the same snippets with the sprinkle macro
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
Adding multiple snippets at the same time results in a lot of repetitive code.
|
2022-10-14 16:03:47 +02:00
|
|
|
It is better to use the `sprinkle` macro instead:
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
macro('sprinkle', {
|
|
|
|
snippet: 'notch',
|
|
|
|
on: [
|
|
|
|
'neck',
|
|
|
|
'shoulder',
|
|
|
|
'armholePitch',
|
|
|
|
'chestPocketBottomLeft',
|
|
|
|
'chestPocketBottomRight',
|
|
|
|
'lapelBreakPoint',
|
|
|
|
'notchMax',
|
|
|
|
'notch',
|
|
|
|
'innerPocketLeft',
|
|
|
|
'innerPocketRight',
|
|
|
|
'frontPocketTopLeft',
|
|
|
|
'frontPocketBottomLeft',
|
|
|
|
'armholeHollow',
|
|
|
|
'waist'
|
|
|
|
]
|
|
|
|
})
|
|
|
|
```
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::tip
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-12 19:09:04 +02:00
|
|
|
Refer to [the sprinkle macro documentation](/reference/macros/sprinkle) for details on how
|
2021-08-25 16:09:31 +02:00
|
|
|
to use this macro
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::
|