mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-01 04:06:51 +00:00
Add new "\import" pragma
This commit is contained in:
@@ -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]
|
||||
```
|
||||
Reference in New Issue
Block a user