Skip to content

Commit

Permalink
Update dbt-project-yml-context.md (#4109)
Browse files Browse the repository at this point in the history
[Preview](https://docs-getdbt-com-git-dbeatty-context-dbt-project-dbt-labs.vercel.app/reference/dbt-jinja-functions/dbt-project-yml-context)

## What are you changing in this pull request and why?
This PR separates the context variables and methods.

## Checklist
- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
and [About
versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
so my content adheres to these guidelines.
  • Loading branch information
mirnawong1 authored Sep 22, 2023
2 parents 4a3306d + 6e976b2 commit 882f656
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
---
title: " About dbt_project.yml context variables"
title: " About dbt_project.yml context"
sidebar_label: "dbt_project.yml context"
id: "dbt-project-yml-context"
description: "The context variables and methods are available when configuring resources in the dbt_project.yml file."
description: "The context methods and variables available when configuring resources in the dbt_project.yml file."
---

The following context variables and methods are available when configuring
The following context methods and variables are available when configuring
resources in the `dbt_project.yml` file. This applies to the `models:`, `seeds:`,
and `snapshots:` keys in the `dbt_project.yml` file.

**Available context methods:**
- [env_var](/reference/dbt-jinja-functions/env_var)
- [var](/reference/dbt-jinja-functions/var) (_Note: only variables defined with `--vars` are available_)

**Available context variables:**
- [target](/reference/dbt-jinja-functions/target)
- [env_var](/reference/dbt-jinja-functions/env_var)
- [vars](/reference/dbt-jinja-functions/var) (_Note: only variables defined with `--vars` are available_)
- [builtins](/reference/dbt-jinja-functions/builtins)
- [dbt_version](/reference/dbt-jinja-functions/dbt_version)


### Example configuration

<File name='dbt_project.yml'>
Expand Down

0 comments on commit 882f656

Please sign in to comment.