Creating templates testing and Modifying exporters

This commit is contained in:
ruidajo 2022-06-09 14:14:37 -05:00
parent dcb098e0c7
commit 68333ff0c0
3 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,6 @@
accessing accessing
exportDefaultReport exportDefaultReport
self installTemplate. self hasTemplates
ifFalse: [ self installTemplate ].
^ self exportWithTemplate: (TweetsCollection dataStore / 'templates' / 'template.mus.tex') into: self folder ^ self exportWithTemplate: (TweetsCollection dataStore / 'templates' / 'template.mus.tex') into: self folder

View File

@ -1,5 +1,6 @@
accessing accessing
exportStaticWebReport exportStaticWebReport
self installTemplate. self hasTemplates
ifTrue: [ self installTemplate ].
^ self exportWithTemplate: (TweetsCollection dataStore / 'templates' / 'index.mus.html') into: self folder ^ self exportWithTemplate: (TweetsCollection dataStore / 'templates' / 'index.mus.html') into: self folder

View File

@ -0,0 +1,6 @@
accessing
hasTemplates
| templatesFolder |
templatesFolder :=(TweetsCollection dataStore / 'templates' ).
^ templatesFolder exists and: [ templatesFolder children isNotEmpty ]