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 accessing
exportWithTemplate: mustacheFile On: fileReference exportWithTemplate: mustacheFile On: folder
| directory data mustacheDoc | | mustacheDoc |
directory := fileReference parent. self exportProfileImageOn:folder / userName, '-profileImage.jpg'.
data := self asDictionary. mustacheDoc := mustacheFile asMustacheTemplate value: self asDictionary.
self exportProfileImageOn:directory / userName, '-profileImage.jpg'.
mustacheDoc := mustacheFile asMustacheTemplate value: data.
MarkupFile MarkupFile
exportAsFileOn: (directory / (data at:'profile-card-username') asDashedLowercase , 'tex') exportAsFileOn: (folder / self userName , 'tex')
containing: mustacheDoc containing: mustacheDoc

View File

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

View File

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