Sha256: 8e4b1e4485e7dbaaf7e4eace24877dc0a5041d3c11df89c14e8e88886863f275
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
### Use Case: Reuse 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. #### File to Be Included Here's a file containing some text that can be included: @[:code_block](reusable_text.md) #### Includer 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 markdown_helper include includer.md included.md ``` #### File with Inclusion Here's the finished file with the inclusion: @[:code_block](included.md)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
markdown_helper-1.7.0 | markdown/use_cases/reuse_text/template.md |