13 lines
526 B
Smalltalk
13 lines
526 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: '\_'.
|
|
modified := modified copyReplaceAll: '#' with: '\#'.
|
|
tempDictionary at: 'profile-bio' put: modified.
|
|
^ MarkupFile
|
|
exportAsFileOn: (folder / self userName , 'tex')
|
|
containing:(mustacheFile asMustacheTemplate value: tempDictionary) |