generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c16b06
commit 3ae4202
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Release notes for 1.56.0 | ||
date: 2024-12-19 | ||
tags: release-notes | ||
--- | ||
|
||
## Templates now support Templater syntax | ||
|
||
Modal Form 1.56.0 enhances its templates feature with Templater support! | ||
I'm particularly excited about this integration because, with a little addition we are greatly improving the usability of this plugin, but also Templater. | ||
Now binding a particular form to a complex template is easier than ever, knowing the fields available in the template also becomes a lot easier and I think the overall experience is greatly improved. | ||
|
||
![Templates with Templater syntax](./templater-templates.png) | ||
|
||
### What's New | ||
|
||
The Templater integration adds the following capabilities to form templates: | ||
|
||
- Use Templater syntax (`<% %>`) inside form templates | ||
- Process dates, files, and system information through Templater | ||
- Automatic processing of Templater syntax after form variables are replaced | ||
|
||
Here's a little example combining both syntaxes: | ||
|
||
``` | ||
--- | ||
created: <% tp.date.now() %> | ||
--- | ||
Dear {{name}}, | ||
Meeting scheduled for <% tp.date.now("MMMM Do, YYYY") %> | ||
Location: {{location}} | ||
Best regards, | ||
{{signature}} | ||
``` | ||
|
||
### How it Works | ||
|
||
The template processing now happens in two stages: | ||
|
||
1. First, Modal Form replaces all form variables (the `{{variable}}` syntax) | ||
2. Then, if Templater is available, it processes any Templater syntax in the resulting text | ||
|
||
### Retry Functionality | ||
|
||
Getting templater templates right at the first try can be hard, that's why we added a retry option when templater processing part fails. | ||
If something goes wrong during templater processing , Modal Form now provides a retry modal where you can try to fix the template and try again.: | ||
|
||
![Retry option when template processing fails](./templates-retry.png) | ||
|
||
This makes it easier to fix any issues without losing your form data and gives you an insight on how te template is processed. | ||
|
||
Check out the [templates documentation](/docs/templates) for more details and examples of how to use this new feature. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.