Merge 361573441b
This commit is contained in:
commit
5b7fe3406d
@ -9,7 +9,11 @@ BaselineOfTiddlyWikiPharo >> baseline: spec [
|
|||||||
<baseline>
|
<baseline>
|
||||||
spec
|
spec
|
||||||
for: #common
|
for: #common
|
||||||
do: [
|
do: [
|
||||||
|
"Dependencies"
|
||||||
|
spec baseline: 'ZTimestamp' with: [ spec repository: 'github://svenvc/ztimestamp/repository' ].
|
||||||
|
|
||||||
|
"Packages"
|
||||||
spec package: 'TiddlyWikiPharo'
|
spec package: 'TiddlyWikiPharo'
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
@ -22,6 +22,12 @@ Class {
|
|||||||
#category : #'TiddlyWiki-Model'
|
#category : #'TiddlyWiki-Model'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{ #category : #'instance creation' }
|
||||||
|
Tiddler class >> nowLocal [
|
||||||
|
^ (ZTimestampFormat fromString: '200102031605067')
|
||||||
|
format: (ZTimestamp fromString: Time nowLocal asDateAndTime asString)
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
Tiddler >> asDictionary [
|
Tiddler >> asDictionary [
|
||||||
^ Dictionary new
|
^ Dictionary new
|
||||||
@ -29,6 +35,7 @@ Tiddler >> asDictionary [
|
|||||||
at: 'text' put: self text;
|
at: 'text' put: self text;
|
||||||
at: 'created' put: self created asString;
|
at: 'created' put: self created asString;
|
||||||
at: 'tags' put: self tags;
|
at: 'tags' put: self tags;
|
||||||
|
at: 'type' put: self type;
|
||||||
yourself.
|
yourself.
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -37,6 +44,12 @@ Tiddler >> asJson [
|
|||||||
^ STONJSON toStringPretty: self asDictionary
|
^ STONJSON toStringPretty: self asDictionary
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
Tiddler >> asJsonTempFile [
|
||||||
|
^ MarkupFile exportAsFileOn: FileLocator temp / self title, 'json' containing:self asJson
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
Tiddler >> caption [
|
Tiddler >> caption [
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user