Templates
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 your active document, run Create a Template.
From scratch
- Create a file in Templates Folder.
- Add Template File Metadata.
Build the template
- Use Context available for templates to prepare the template. For more information about the template engine, please see handlebarsjs.
- The template will be accessible through Template commads.
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
Code Blocks
[!note] Code Blocks Code Blocks allow you to dynamically generate content and create templates quickly. They act as on-page templates...
Commands
Basic Commands The simplest commands are : “Generate Text!” and “Generate Text (use Metadata).” [[Generate Text]] [[Generate Text and Use...
Considered Context
[!note] Considered Context The [[Transformer]] needs context to generate accurate text. So all the data that we will send with...
Create a template
The Template Package Manager is now working on mobile devices. Removed Template packages are now stored in a trash folder...
Share a New Template Package
[!warning] This is a draft. This section of the documentation will be written in more details at a later date....
Text Generator Features
There are many benefits to using a Text Generator Plugin, including the following:
What is the difference between using Text Generator and other AI Writers
Text Generator Plugin works besides [[Obsidian]] which is a powerful knowledge organization and management tool. In contrast with other AI...
What's New
Version 0.3.0-beta Key features and improvements in Text Generator v0.3.0-beta include: Refactoring the code: To ensure optimal performance and readability,...