Skip to content

Commit e272895

Browse files
committed
Rescuing the writer so that we can compile books
1 parent 120b59a commit e272895

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/Pillar-ExporterCore/PRAbstractOutputDocument.class.st

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,17 @@ PRAbstractOutputDocument >> writeDocument: aDocument [
200200
outputFile writeStreamDo: [ :stream | stream nextPutAll: templatedOutput ].
201201
^ outputFile
202202
]
203+
204+
{ #category : 'accessing' }
205+
PRAbstractOutputDocument >> writer [
206+
207+
"If templating is active in the command, use the templated writer"
208+
| writer |
209+
writer := self basicWriter.
210+
"project isTemplatable ifTrue: [
211+
writer := PRTemplatedWriter new
212+
outputDocument: self;
213+
defaultWriter: writer;
214+
yourself ]."
215+
^ writer
216+
]

src/Pillar-ExporterHTML/PRXHtmlDocument.class.st

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ Class {
77

88
{ #category : 'accessing' }
99
PRXHtmlDocument >> basicWriter [
10+
self halt.
1011

11-
^ PRXHTMLWriter new
12+
^ self "was PRXHTMLWriter new"
1213
]
1314

1415
{ #category : 'accessing' }

0 commit comments

Comments
 (0)