> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kiwify.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# source

> The string source indicates within which editor the template is being rendered.

You can use the `source` value to add specific elements to one of the editors -- theme editor or code editor. The possible values are:

* `"theme-editor"`: When the template is being rendered within the Theme Editor
* `"code-editor"`: When the template is being rendered within the Code Editor
* `nil`: When the template is not being rendered within an editor

## Syntax

```liquid theme={null}
{% source %}
```

## Scope

It is globally accessible, in any template, section or block.

<Frame>
  ```mermaid theme={null}
  graph TD
      A[Global Context] --> B[source]
      style A fill:#f9f9f9,stroke:#333,stroke-width:2px,color:#333,stroke-dasharray: 5 5
      style B fill:#4B96FF,stroke:#333,stroke-width:1px,color:white,font-weight:bold
      linkStyle 0 stroke:#4B96FF,stroke-width:2px
  ```
</Frame>

## Example

<Columns cols={2}>
  <CodeGroup>
    ```liquid Code theme={null}
    {% if source == 'code-editor' %}
    <p>This appears only within the code editor</p>
    {% endif %}
    ```
  </CodeGroup>

  <CodeGroup>
    ```liquid Output theme={null}
    <p>This appears only within the code editor</p>
    ```
  </CodeGroup>
</Columns>
