Adding configuration variables.

This commit is contained in:
ruidajo 2022-03-29 18:11:22 -05:00
parent af367cd50c
commit afbb61ffd9
6 changed files with 24 additions and 8 deletions

View File

@ -0,0 +1,4 @@
accessing
config: aDictionary
config := aDictionary

View File

@ -0,0 +1,4 @@
accessing
config
^ config

View File

@ -0,0 +1,4 @@
accessing
downloadProfileImage
self exportProfileImageOn: self folder / self userName, '.jpg'

View File

@ -1,11 +1,9 @@
accessing
exportWithTemplate: mustacheFile On: fileReference
exportWithTemplate: mustacheFile On: folder
| directory data mustacheDoc |
directory := fileReference parent.
data := self asDictionary.
self exportProfileImageOn:directory / userName, '-profileImage.jpg'.
mustacheDoc := mustacheFile asMustacheTemplate value: data.
| mustacheDoc |
self exportProfileImageOn:folder / userName, '-profileImage.jpg'.
mustacheDoc := mustacheFile asMustacheTemplate value: self asDictionary.
MarkupFile
exportAsFileOn: (directory / (data at:'profile-card-username') asDashedLowercase , 'tex')
exportAsFileOn: (folder / self userName , 'tex')
containing: mustacheDoc

View File

@ -0,0 +1,4 @@
accessing
folder
^ self config at: 'folder'.

View File

@ -5,7 +5,9 @@
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"instvars" : [
"config"
],
"name" : "NitterUser",
"type" : "normal"
}