RealRaven2000 / SmartTemplates

Thunderbird Add-on: SmartTemplates
http://smarttemplates.quickfolders.org/
Other
25 stars 15 forks source link

Allow `%file()%` command to use `../` to access parent folders of a file #237

Closed RealRaven2000 closed 1 year ago

RealRaven2000 commented 1 year ago

The %file()% command currently supports accessing files from a location relative to where the included HTML file / picture is stored.

The same should apply to the %style()% command.

Sometimes we need to include file content of a file that is in a sibling or parent folder, so for this we will need to be able to use the sequence ../ to change to the parent directory and access its contents (or subfolders therein). This currently doesn';t work.

Examples:

%file(../../history/qf-5.16-de.html)%
%file(../faq.html)%
%style(../styles/quickfolders-reminder.css)%
RealRaven2000 commented 1 year ago

Test version below. I needed the feature myself, I implemented it. Also updated News Splash accordingly. (I might add a new example to the variables tab as well)

smartTemplate-fx-3.17pre28.zip

To install, download the zip file and then drag it into Thunderbird Add-ons Manager (do not extract contents, because you cannot install it that way).

RealRaven2000 commented 1 year ago

Implemented in v3.17 released 04/May/2023