Skip to content

Commit a55f2c9

Browse files
committed
Add undocumented template variables to docs
1 parent 3647a06 commit a55f2c9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/creating.md

Lines changed: 18 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,14 @@ 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+
124+
### `_folder_name`
125+
126+
The name of the project root directory.
127+
116128
## Variables (context-dependent)
117129

118130
Some variables are only available in select contexts:
@@ -122,3 +134,9 @@ Some variables are only available in select contexts:
122134
The current operation, either `copy` or `update`.
123135

124136
Availability: [`exclude`](configuring.md#exclude), [`tasks`](configuring.md#tasks)
137+
138+
## Variables (context-specific)
139+
140+
Some rendering contexts provide variables unique to them:
141+
142+
- [`migrations`](configuring.md#migrations)

0 commit comments

Comments
 (0)