06/18/2023, 4:09 AM
Hi! I made a mistake when doing the interactive website tutorial, and have a suggestion for the docs. can I leave it here, or do you need a PR?
Copy code
Inside Article.kt, let's create a mutable list for storing articles and add the first entry:
I put the list inside the class, and got an error about not being able to infer type variable V when doing the mapOf in
Copy code
call.respond(FreeMarkerContent("index.ftl", mapOf("articles" to articles)))
It wasn't until I tracked down the sample code in github that I figured it out. Maybe say to not put it in the class, or show the creation of the map in the context of the whole file, or maybe add links to docs that point to the relevant demo project files for easy reference?

Aleksei Tirman [JB]

06/19/2023, 6:23 AM
Can you please file an issue?