Refreshing remote tiddlers from TiddlyHost.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-10-10 10:20:47 -05:00
parent 20553574e4
commit 854a398a50
2 changed files with 8 additions and 2 deletions

View File

@ -192,7 +192,7 @@ Tiddler >> exportSTONFileInto: subfolder [
Tiddler >> exportSTONFileOptimized [
| exporter wikiFolder tiddlersFolder |
wikiFolder := self wiki file parent.
wikiFolder := self wiki folder.
exporter := wikiFolder / 'scripts' / 'stringAsFileInto'.
exporter exists ifFalse: [ self installTiddlerExporter ].
tiddlersFolder := wikiFolder / 'tiddlers'.

View File

@ -362,6 +362,12 @@ TiddlyWiki >> fromUrl: anUrlString [
self fromDictionary: tiddlersDictionary
]
{ #category : #accessing }
TiddlyWiki >> getRemoteTiddlers [
self importJSONLink.
^ self tiddlers
]
{ #category : #accessing }
TiddlyWiki >> htmlFileExists [
self file ifNil: [
@ -715,7 +721,7 @@ TiddlyWiki >> tiddlers: anOrderedCollection [
{ #category : #accessing }
TiddlyWiki >> tiddlersFolder [
^ self file parent / 'tiddlers'
^ self folder / 'tiddlers'
]
{ #category : #accessing }