Add new "\import" pragma

This commit is contained in:
Jermolene
2018-09-28 16:01:32 +01:00
parent f61a61c060
commit fe85845c3c
3 changed files with 66 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
caption: importvariables
created: 20140612142500000
modified: 20140612175900970
modified: 20180928150043777
tags: Widgets
title: ImportVariablesWidget
type: text/vnd.tiddlywiki
caption: importvariables
! Introduction
@@ -31,3 +31,11 @@ So-called global macros are implemented within the main page template ([[$:/core
...
</$importvariables>
```
! `\import` Pragma
<<.from-version "5.1.18">> The `\import` [[pragma|Pragma]] is an alternative syntax for using the ImportVariablesWidget. For example, the previous example could be expressed as:
```
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]
```