2022-04-16 06:32:02 +00:00
|
|
|
accessing
|
|
|
|
installTemplate
|
|
|
|
|
|
|
|
| templateFiles folder |
|
|
|
|
templateFiles := #(
|
2022-06-01 20:52:32 +00:00
|
|
|
'https://mutabit.com/repos.fossil/mutabit/raw?name=plantillas/TwentySecondsCV/twentysecondcvMod.cls&ci=tip'
|
|
|
|
'https://mutabit.com/repos.fossil/mutabit/raw?name=plantillas/TwentySecondsCV/template.mus.tex&ci=tip'
|
2022-06-04 00:43:01 +00:00
|
|
|
'https://mutabit.com/repos.fossil/mutabit/raw?name=plantillas/SarissaPersonalBlog/index.mus.html&ci=tip'
|
|
|
|
'https://mutabit.com/repos.fossil/mutabit/raw?name=plantillas/SarissaPersonalBlog/output.css&ci=tip').
|
2022-04-16 06:32:02 +00:00
|
|
|
folder := TweetsCollection dataStore / 'templates'.
|
|
|
|
folder exists
|
|
|
|
ifTrue: [ folder ensureDeleteAllChildren ]
|
|
|
|
ifFalse: [ folder ensureCreateDirectory].
|
|
|
|
templateFiles do: [ :fileUrl |
|
|
|
|
ZnClient new
|
|
|
|
url: fileUrl;
|
|
|
|
downloadTo: folder.
|
|
|
|
(folder children detect: [ :file | file basename includesSubstring: 'raw' ])
|
|
|
|
renameTo: (((fileUrl splitOn: 'raw?') second splitOn: '/') last removeSuffix: '&ci=tip')
|
|
|
|
].
|
|
|
|
^ folder
|