From 88f5b420198f76755afe4c36f2db3229edc9dc26 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Fri, 23 May 2025 16:41:33 -0700 Subject: [PATCH] Add lint info to README --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a24617..7931d97 100644 --- a/README.md +++ b/README.md @@ -64,12 +64,26 @@ or $ make -### visit `localhost:8080` in web browser +Visit `localhost:8080` in web browser ### start watcher $ docker exec -it container_name sitegen watch +### lint moonscript + + $ make lint + +## gotchas + +### What is `cosmo failed: [string "..."]:62: cannot resume dead coroutine`? + +If you call `cosmo.yield`, your function **must** return `nil`! If you forget +to return `nil`, you will see this cryptic error: + + Error: index.html -> html/index.html: cosmo failed: [string "..."]:62: cannot resume dead coroutine + make: *** [Makefile:6: build] Error 1` + ## todo * draft documents