1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Compressing $set chains into one $vars (#4659)

This commit is contained in:
Cameron Fischer 2020-08-28 09:53:20 -04:00 committed by GitHub
parent 7de8e1fc97
commit b86bbf3fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 48 deletions

View File

@ -6,17 +6,13 @@ 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]] \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
<$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}> <$vars
tv-config-toolbar-icons={{$:/config/Toolbar/Icons}}
<$set name="tv-config-toolbar-text" value={{$:/config/Toolbar/Text}}> tv-config-toolbar-text={{$:/config/Toolbar/Text}}
tv-config-toolbar-class={{$:/config/Toolbar/ButtonClass}}
<$set name="tv-config-toolbar-class" value={{$:/config/Toolbar/ButtonClass}}> tv-show-missing-links={{$:/config/MissingLinks}}
storyviewTitle={{$:/view}}
<$set name="tv-show-missing-links" value={{$:/config/MissingLinks}}> languageTitle={{{ [{$:/language}get[name]] }}}>
<$set name="storyviewTitle" value={{$:/view}}>
<$set name="languageTitle" value={{{ [{$:/language}get[name]] }}}>
<div class=<<containerClasses>>> <div class=<<containerClasses>>>
@ -28,14 +24,4 @@ tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$
</div> </div>
</$set> </$vars>
</$set>
</$set>
</$set>
</$set>
</$set>

View File

@ -6,19 +6,14 @@ 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]] \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
<$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}> <$vars
tv-config-toolbar-icons={{$:/config/Toolbar/Icons}}
<$set name="tv-config-toolbar-text" value={{$:/config/Toolbar/Text}}> tv-config-toolbar-text={{$:/config/Toolbar/Text}}
tv-config-toolbar-class={{$:/config/Toolbar/ButtonClass}}
<$set name="tv-config-toolbar-class" value={{$:/config/Toolbar/ButtonClass}}> tv-enable-drag-and-drop={{$:/config/DragAndDrop/Enable}}
tv-show-missing-links={{$:/config/MissingLinks}}
<$set name="tv-enable-drag-and-drop" value={{$:/config/DragAndDrop/Enable}}> storyviewTitle={{$:/view}}
languageTitle={{{ [{$:/language}get[name]] }}}>
<$set name="tv-show-missing-links" value={{$:/config/MissingLinks}}>
<$set name="storyviewTitle" value={{$:/view}}>
<$set name="languageTitle" value={{{ [{$:/language}get[name]] }}}>
<div class=<<containerClasses>>> <div class=<<containerClasses>>>
@ -38,16 +33,4 @@ tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$
</div> </div>
</$set> </$vars>
</$set>
</$set>
</$set>
</$set>
</$set>
</$set>