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

12 lines
470 B
Smalltalk

accessing
exportWithTemplate: mustacheFile into: 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)