Skip to content

Commit

Permalink
docs: clarify templaters options
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking committed Nov 2, 2024
1 parent 22653be commit aefc7a8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion crates/cli/src/docs/generate_templater_docs_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ FROM users
WHERE id = :id
```

The templater is set in the config file as follows:

```ini
[sqruff]
templater = raw
```

## Templaters Index

Sqruff comes with the following templaters out of the box:
Expand All @@ -21,4 +28,4 @@ Sqruff comes with the following templaters out of the box:
### {{ templater.name }}

{{ templater.description }}
{% endfor %}
{% endfor %}
2 changes: 1 addition & 1 deletion crates/lib/src/core/default_config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nocolor = False
# Supported dialects https://docs.sqlfluff.com/en/stable/dialects.html
# Or run 'sqlfluff dialects'
dialect = None
# One of [raw|jinja|python|placeholder]
# See templater docs for options
templater = raw
# Comma separated list of rules to check, default to core
rules = core
Expand Down
7 changes: 7 additions & 0 deletions docs/templaters.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ FROM users
WHERE id = :id
```

The templater is set in the config file as follows:

```ini
[sqruff]
templater = raw
```

## Templaters Index

Sqruff comes with the following templaters out of the box:
Expand Down

0 comments on commit aefc7a8

Please sign in to comment.