- {#if $template?.variables?.length}
-
-
Environment variables
+ {#if $template?.variables?.length}
+ {#if requiredVariables?.length}
+
+
+ Required variables
+
+ {requiredVariables.length}
+
- {#each $template.variables as variable}
- {#if variable.name === 'APPWRITE_API_KEY'}
-
-
-
-
-
- This API key will allow you to interact with the Appwrite
- server APIs. Learn more.
-
-
-
- The APPWRITE_API_KEY will be automatically
- generated for your project and applied to this function once it's
- created.
-
-
-
- {/if}
+
+ {#each requiredVariables as variable}
+
+
-
- {@html variable.description}
-
- {/each}
+
+ {@html variable.description}
+
+
+ {/each}
+
+
+
+ {/if}
+
+ {#if appwriteVariable}
+
+
+
+
+
+ This API key will allow you to interact with the Appwrite server APIs. Learn more.
+
+
+
+ The APPWRITE_API_KEY will be automatically generated
+ for your project and applied to this function once it's created.
+
+
{/if}
-
+ {#if optionalVariables?.length}
+
+
+ Optional variables
+
+ {optionalVariables.length}
+
+
+
+ {#each optionalVariables as variable}
+
+
+
+
+ {@html variable.description}
+
+
+ {/each}
+
+
+
+ {/if}
+ {/if}