# About properties.yml context

The following context methods and variables are available when configuring resources in a `properties.yml` file.

**Available context methods:**

* [env\_var](./env_var.md)
* [var](./var.md)

**Available context variables:**

* [target](./target.md)
* [builtins](./builtins.md)
* [dbt\_version](./dbt_version.md)

### Example configuration

properties.yml

```yml
# Configure this model to be materialized as a view
# in development and a table in production/CI contexts

models:
  - name: dim_customers
    config:
      materialized: "{{ 'view' if target.name == 'dev' else 'table' }}"
```

## Was this page helpful?

YesNo

[Privacy policy](https://www.getdbt.com/cloud/privacy-policy)[Create a GitHub issue](https://github.com/dbt-labs/docs.getdbt.com/issues)

This site is protected by reCAPTCHA and the Google [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms) apply.
