Socialmetrica/Socialmetrica.package/NitterUser.class/instance/exportWithTemplate.On..st

12 lines
468 B
Smalltalk

accessing
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
exportAsFileOn: (folder / self userName , 'tex')
containing:(mustacheFile asMustacheTemplate value: tempDictionary)