Templates

doc
Templates

Templates are used to make your work easier by providing a structure so that you don’t have to start from scratch every time you write or generate a text.

Handlebars Template Engine is used. For more information, please visit their website.

Templates Folder

The default folder for textgenerator/prompts. You can change this path from the setting of the plugin.

Updating Community Packages

In the prompts templates folder, each package has its folder, when updating a package, all the files inside might be overwritten. See Share a New Template Package.

Write a new Template

Create the template file

Using Create Template

From scratch

Build the template

Helper Functions

  • These are functions that help in dealing with the variables in a template. More details about these functions can be found in the following page : Helper Functions.

Share a New Template Package

Table of contents

Local Graph

Mentions