mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-30 23:23:02 +00:00 
			
		
		
		
	Use the new import pragma
Good for the core to show best practice
This commit is contained in:
		| @@ -3,6 +3,5 @@ title: $:/core/templates/exporters/StaticRiver/Content | |||||||
| \define renderContent() | \define renderContent() | ||||||
| {{{ $(exportFilter)$ ||$:/core/templates/static-tiddler}}} | {{{ $(exportFilter)$ ||$:/core/templates/static-tiddler}}} | ||||||
| \end | \end | ||||||
| <$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"> | \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] | ||||||
| <<renderContent>> | <<renderContent>> | ||||||
| </$importvariables> |  | ||||||
|   | |||||||
| @@ -6,4 +6,5 @@ extension: .tid | |||||||
| \define renderContent() | \define renderContent() | ||||||
| {{{ $(exportFilter)$ +[limit[1]] ||$:/core/templates/tid-tiddler}}} | {{{ $(exportFilter)$ +[limit[1]] ||$:/core/templates/tid-tiddler}}} | ||||||
| \end | \end | ||||||
| <$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"><<renderContent>></$importvariables> | \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of] | ||||||
|  | <<renderContent>> | ||||||
| @@ -2,7 +2,7 @@ title: $:/core/templates/server/static.tiddler.html | |||||||
|  |  | ||||||
| \whitespace trim | \whitespace trim | ||||||
| \define tv-wikilink-template() $uri_encoded$ | \define tv-wikilink-template() $uri_encoded$ | ||||||
| <$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"> | \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of] | ||||||
| <html> | <html> | ||||||
| <head> | <head> | ||||||
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | ||||||
| @@ -26,4 +26,3 @@ title: $:/core/templates/server/static.tiddler.html | |||||||
| </section> | </section> | ||||||
| </body> | </body> | ||||||
| </html> | </html> | ||||||
| </$importvariables> |  | ||||||
| @@ -4,6 +4,7 @@ title: $:/core/templates/static.tiddler.html | |||||||
| \define tv-config-toolbar-icons() no | \define tv-config-toolbar-icons() no | ||||||
| \define tv-config-toolbar-text() no | \define tv-config-toolbar-text() no | ||||||
| \define tv-config-toolbar-class() tc-btn-invisible | \define tv-config-toolbar-class() tc-btn-invisible | ||||||
|  | \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of] | ||||||
| `<!doctype html> | `<!doctype html> | ||||||
| <html> | <html> | ||||||
| <head> | <head> | ||||||
| @@ -22,9 +23,7 @@ title: $:/core/templates/static.tiddler.html | |||||||
| <body class="tc-body"> | <body class="tc-body"> | ||||||
| `{{$:/StaticBanner||$:/core/templates/html-tiddler}}` | `{{$:/StaticBanner||$:/core/templates/html-tiddler}}` | ||||||
| <section class="tc-story-river"> | <section class="tc-story-river"> | ||||||
| `<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"> | `<$view tiddler="$:/core/ui/ViewTemplate" format="htmlwikified"/>` | ||||||
| <$view tiddler="$:/core/ui/ViewTemplate" format="htmlwikified"/> |  | ||||||
| </$importvariables>` |  | ||||||
| </section> | </section> | ||||||
| </body> | </body> | ||||||
| </html> | </html> | ||||||
|   | |||||||
| @@ -119,10 +119,8 @@ $:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$ | |||||||
| </$list> | </$list> | ||||||
| \end | \end | ||||||
|  |  | ||||||
| <$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"> | \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of] | ||||||
|  |  | ||||||
| <div> | <div> | ||||||
| <<plugin-library-listing>> | <<plugin-library-listing>> | ||||||
| </div> | </div> | ||||||
|  |  | ||||||
| </$importvariables> |  | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| title: $:/core/ui/PageStylesheet | title: $:/core/ui/PageStylesheet | ||||||
|  |  | ||||||
| <$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"> | \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of] | ||||||
|  |  | ||||||
| <$set name="currentTiddler" value={{$:/language}}> | <$set name="currentTiddler" value={{$:/language}}> | ||||||
|  |  | ||||||
| @@ -13,5 +13,3 @@ title: $:/core/ui/PageStylesheet | |||||||
| </$set> | </$set> | ||||||
|  |  | ||||||
| </$set> | </$set> | ||||||
|  |  | ||||||
| </$importvariables> |  | ||||||
|   | |||||||
| @@ -3,8 +3,7 @@ title: $:/core/ui/PageTemplate | |||||||
| \define containerClasses() | \define containerClasses() | ||||||
| tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$ | tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$ | ||||||
| \end | \end | ||||||
|  | \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of] | ||||||
| <$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"> |  | ||||||
|  |  | ||||||
| <$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}> | <$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}> | ||||||
|  |  | ||||||
| @@ -51,5 +50,3 @@ tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$ | |||||||
| </$set> | </$set> | ||||||
|  |  | ||||||
| </$set> | </$set> | ||||||
|  |  | ||||||
| </$importvariables> |  | ||||||
|   | |||||||
| @@ -22,10 +22,8 @@ Startup actions are useful for customising TiddlyWiki according to environmental | |||||||
| </$reveal> | </$reveal> | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| Note that global macros are not available within startup action tiddlers by default. If you need to access them then you'll need to explicitly include them: | Note that global macros are not available within startup action tiddlers by default. If you need to access them then you'll need to explicitly include them with an ''import'' [[pragma|Pragma]] at the top of the tiddler: | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| <$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"> | \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of] | ||||||
| ...actions that depend upon global macros... |  | ||||||
| </$importvariables> |  | ||||||
| ``` | ``` | ||||||
|   | |||||||
| @@ -4,8 +4,7 @@ title: ReadMe | |||||||
| type: text/vnd.tiddlywiki | type: text/vnd.tiddlywiki | ||||||
|  |  | ||||||
| \define tv-wikilink-template() https://tiddlywiki.com/static/$uri_doubleencoded$.html | \define tv-wikilink-template() https://tiddlywiki.com/static/$uri_doubleencoded$.html | ||||||
|  | \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of] | ||||||
| <$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"> |  | ||||||
|  |  | ||||||
| Welcome to TiddlyWiki, a non-linear personal web notebook that anyone can use and keep forever, independently of any corporation. | Welcome to TiddlyWiki, a non-linear personal web notebook that anyone can use and keep forever, independently of any corporation. | ||||||
|  |  | ||||||
| @@ -32,5 +31,3 @@ Developer documentation is in progress at https://tiddlywiki.com/dev/ | |||||||
| <<list-links "[tag[TiddlyWiki on Node.js]] -[[Installing TiddlyWiki on Node.js]] -[[Using TiddlyWiki on Node.js]] -[[Upgrading TiddlyWiki on Node.js]]">> | <<list-links "[tag[TiddlyWiki on Node.js]] -[[Installing TiddlyWiki on Node.js]] -[[Using TiddlyWiki on Node.js]] -[[Upgrading TiddlyWiki on Node.js]]">> | ||||||
|  |  | ||||||
| //This readme file was automatically generated by TiddlyWiki// | //This readme file was automatically generated by TiddlyWiki// | ||||||
|  |  | ||||||
| </$importvariables> |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jermolene
					Jermolene