Sha256: 0341cb3fce062ecc84133f1fc1636cad9d24db36d3c0a88cdb007e3f09c7d67a

Contents?: true

Size: 690 Bytes

Versions: 2

Compression:

Stored size: 690 Bytes

Contents

### Reusable Text

Use file inclusion to stay DRY (Don't Repeat Yourself).

Maintain reusable text in a separate file, then include it wherever it's needed.

#### Separate File

Here's a file containing some text that can be included in more than one place:

@[:code_block](reusable_text.md)

#### Template File

Here's a template file that includes it:

@[:code_block](includer.md)

#### Command

Here's the command to perform the inclusion (```--pristine``` suppresses inclusion comments):

```sh
ruby ../../../bin/include --pristine includer.md included.md
```

#### Included File

Here's the finished file with the inclusion:

@[:code_block](included.md)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
markdown_helper-1.6.1 markdown/use_cases/reusable_text/template.md
markdown_helper-1.6.0 markdown/use_cases/reusable_text/template.md