This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-04-01 20:10:22 -05:00
commit 3d2a3d8696
3 changed files with 17 additions and 1 deletions

View File

@ -1,6 +1,12 @@
accessing accessing
exportWithTemplate: mustacheFile On: folder exportWithTemplate: mustacheFile On: folder
| tempDictionary modified |
tempDictionary := self asDictionary copy.
modified := self asDictionary at: 'profile-bio'.
modified := modified copyReplaceAll: '@' with: '\@'.
modified := modified copyReplaceAll: '_' with: '\_'.
tempDictionary at: 'profile-bio' put: modified.
MarkupFile MarkupFile
exportAsFileOn: (folder / self userName , 'tex') exportAsFileOn: (folder / self userName , 'tex')
containing:(mustacheFile asMustacheTemplate value: self asDictionary) containing:(mustacheFile asMustacheTemplate value: tempDictionary)

View File

@ -0,0 +1,4 @@
accessing
fromSTON: aFileReference
^ STON fromString:aFileReference contents

View File

@ -0,0 +1,6 @@
accessing
storeContents
| objectString |
objectString := STON toStringPretty: self.
^ MarkupFile exportAsFileOn: self folder/ self userName, 'ston' containing: objectString.