Fixing the rebuilded common tiddlers exporter for JSON format.
This commit is contained in:
parent
2262ebaec2
commit
48fecc3951
@ -218,10 +218,11 @@ TiddlyWiki >> exportJSONFileOptimized [
|
|||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
TiddlyWiki >> exportJSONFromRebuildedCommonTiddlers [
|
TiddlyWiki >> exportJSONFromRebuildedCommonTiddlers [
|
||||||
|
|
||||||
| rebuildedTiddlersJSON dateNowString |
|
| rebuildedTiddlersJSON dateNowString wikiFolder|
|
||||||
|
wikiFolder := self folder.
|
||||||
dateNowString := (DateAndTime now asLocalStringYMDHM copyReplaceAll: ':' with: '-') copyReplaceAll: ' ' with: '-'.
|
dateNowString := (DateAndTime now asLocalStringYMDHM copyReplaceAll: ':' with: '-') copyReplaceAll: ' ' with: '-'.
|
||||||
rebuildedTiddlersJSON := '[', (',' join: (self rebuildTiddlersWithoutLargeTiddlers collect: [ :each | each asJsonString ])), ']'.
|
rebuildedTiddlersJSON := '[', (',' join: (self rebuildTiddlersWithoutLargeTiddlers collect: [ :each | each asJsonString ])), ']'.
|
||||||
^ MarkupFile exportAsFileOn: self folder / 'rebuildedCommonTiddlers', dateNowString, 'json' containing: rebuildedTiddlersJSON
|
^ MarkupFile exportAsFileOn: wikiFolder / 'rebuildedCommonTiddlers', dateNowString, 'json' containing: rebuildedTiddlersJSON
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user