Skip to content

Commit

Permalink
Separate Jinja and Mustache examples into different code blocks in pr…
Browse files Browse the repository at this point in the history
…ompt documentation
  • Loading branch information
pelikhan committed Sep 5, 2024
1 parent aa9741a commit ad7c9e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/src/content/docs/reference/scripts/prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ Today is Thu Jun 13 2024.

The output of the `$` can be further processed by running popular [jinja](https://www.npmjs.com/package/@huggingface/jinja) or [mustache](https://mustache.github.io/) template engines.

```js "jinja" "mustache"
```js "jinja"
$`What is the capital of {{ country }}?`.jinja(env.vars)
$`What is the capital of {{ country }}?`.mustache(env.vars)
```

```js "mustache"
$`What is the capital of {{ country }}?`.mustache(env.vars)
```

0 comments on commit ad7c9e1

Please sign in to comment.