Skip to content

Commit ab02a1a

Browse files
committed
Add undocumented template variables to docs
1 parent 0dec36a commit ab02a1a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/creating.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ suitable to [autoupdate your project safely][the-copier-answersyml-file]:
105105

106106
Furthermore, the following keys are added:
107107

108+
#### `_copier_conf.os`
109+
110+
The detected Operating System, either `linux`, `macos`, `windows` or `None`.
111+
108112
#### `_copier_conf.sep`
109113

110114
The Operating System-specific directory separator.
@@ -113,6 +117,10 @@ The Operating System-specific directory separator.
113117

114118
The current commit hash from the template.
115119

120+
### `_copier_python`
121+
122+
The absolute path of the Python interpreter running Copier.
123+
116124
## Variables (context-dependent)
117125

118126
Some variables are only available in select contexts:
@@ -122,3 +130,9 @@ Some variables are only available in select contexts:
122130
The current operation, either `copy` or `update`.
123131

124132
Availability: [`exclude`](configuring.md#exclude), [`tasks`](configuring.md#tasks)
133+
134+
## Variables (context-specific)
135+
136+
Some rendering contexts provide variables unique to them:
137+
138+
- [`migrations`](configuring.md#migrations)

0 commit comments

Comments
 (0)