TiddlyWikiPharo/repository/TiddlyWiki/TiddlyWikiExamples.class.st
2022-01-21 19:29:55 -05:00

15 lines
391 B
Smalltalk

Class {
#name : #TiddlyWikiExamples,
#superclass : #Object,
#category : #'TiddlyWiki-Model'
}
{ #category : #accessing }
TiddlyWikiExamples >> createDefaultWiki [
<gtExample>
<description: 'I create a wiki with the default seed as a temporal file.'>
TWSeed deleteWikiFileFromFolder: FileLocator temp andSubfolder: 'test'.
^ TWSeed installDefaultInto: FileLocator temp as: 'test'
]