On Tue, 23 Apr 2019 08:55:37 GMT, Andrej Mitrovic wrote:
I'm following https://vibed.org/blog/posts/a-scalable-chat-room-service-in-d.
Here's my app.d: https://gist.github.com/AndrejMitrovic/73a6c256155bf90ea6d3593334a3d662
And room.dt: https://gist.github.com/AndrejMitrovic/a60d1429ec050c694412c32f3c8fb9ab
I get this output when building:
$ Compiling Diet HTML template index.dt...
$ Compiling Diet HTML template room.dt...
$ room.dt(12,15): Error: undefined identifiermessages
I thought initially the issue was that
messages
was private in theRoom
class, but trying to make it public didn't fix the issue. I think I am missed some step in the tutorial?
Wait, I see it now. I didn't update getRoom
to provide the actual parameters to the template file. Solved!