Skip to content

Commit

Permalink
fix: embed includes that weren't working
Browse files Browse the repository at this point in the history
hope that's not a sign of something wrong
  • Loading branch information
gadenbuie committed Jul 24, 2024
1 parent 819f2cb commit 6a5bc3b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ Quarto-processed markdown.
> **\_hello_first_last.qmd**
>
> ``` markdown
> {{< include _hello_first_last.qmd >}}
> ::: {.callout-tip title="Hi there!"}
> {{#person}}
> Hello, {{ honorific }} {{ name.first }} {{ name.last }}!
> {{/person}}
> :::
> ```
>
> </div>
Expand All @@ -113,7 +117,11 @@ markdown list from an array of my favorite fruits.
> **\_favorite_fruits.md**
>
> ``` markdown
> {{< include _favorite_fruits.md >}}
> These are a few of my favorite fruits:
>
> {{#fruits}}
> - {{.}}
> {{/fruits}}
> ```
>
> </div>
Expand Down
16 changes: 12 additions & 4 deletions README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,13 @@ Any key-value pair that starts with `{` or `[` will be parsed into a JSON object
Note that the file type affects the output.
The next example, in addition to using JSON data, uses a `.qmd` file to render the output as Quarto-processed markdown.
> ````{.markdown filename="_hello_first_last.qmd"}
> {{< include _hello_first_last.qmd >}}
> ````
> ```{.markdown filename="_hello_first_last.qmd"}
> ::: {.callout-tip title="Hi there!"}
> {{#person}}
> Hello, {{ honorific }} {{ name.first }} {{ name.last }}!
> {{/person}}
> :::
> ```
>
> ```{.markdown shortcodes="false"}
> {{< partial _hello_first_last.qmd person='{"honorific": "Mr.", "name": {"first": "Garrick", "last": "Aden-Buie"}}' >}}
Expand All @@ -113,7 +117,11 @@ Finally, remember that you can use the full power of [mustache templating][musta
The next example creates a markdown list from an array of my favorite fruits.
> ````{.markdown filename="_favorite_fruits.md"}
> {{< include _favorite_fruits.md >}}
> These are a few of my favorite fruits:
>
> {{#fruits}}
> - {{.}}
> {{/fruits}}
> ````
>
> ```{.markdown shortcodes="false"}
Expand Down

0 comments on commit 6a5bc3b

Please sign in to comment.