# Reusable snippets > Single source your documentation with reusable, custom markdown snippets to keep content in sync. Edit once, update everywhere. Keep your documentation DRY (Don't Repeat Yourself) with single sourcing: define a reusable Markdown snippet once, and then reference it in multiple places. This way, you only need to update the snippet in one place to keep all references in sync. Reusable snippets work well for constants (API limits, subscription prices, version numbers), repeated warnings or notes, and standardized formatting blocks. Create a folder called `snippets` anywhere in your `fern` project. Inside the `snippets` folder, create a new Markdown file for each snippet you want to define. In each snippet file, define the content you want to reuse. ```mdx title="snippets/peace-lily.mdx" Peace lilies are easy to grow and relatively trouble-free. ``` To make snippets more flexible, you can use parameters (also called variables). Parameters use the `{{parameterName}}` syntax and can be placed anywhere in your snippet content. ```mdx title="snippets/watering-schedule.mdx" Remember to water your {{plant}} every {{interval}} days. ``` You can then pass different values to these parameters each time you use the snippet. To use a snippet in your documentation, reference it by its file path (including the `.mdx` extension). If you used parameters (variables) in your snippet, pass values for each parameter:
```jsx They symbolize peace and prosperity. ```
Peace lilies are easy to grow and relatively trouble-free. They symbolize peace and prosperity. Remember to water your peace lily every 3 days.
The `src` path is an absolute path that takes the `fern` folder as the root. The path is the same no matter which page you're referencing it from: | Folder structure | Reference | | ------------------------------------------ | -------------------------------------------- | | `fern/snippets/peace-lily.mdx` | `src="/snippets/peace-lily.mdx"` | | `fern/docs/snippets/peace-lily.mdx` | `src="/docs/snippets/peace-lily.mdx"` | | `fern/docs/guides/snippets/peace-lily.mdx` | `src="/docs/guides/snippets/peace-lily.mdx"` |