Mercurial Hosting > chat
annotate src/get_chats.js.luan @ 113:4cab4df4cbbd default tip
minor
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Fri, 14 Nov 2025 10:44:05 -0700 |
| parents | 8b8905f63d80 |
| children |
| rev | line source |
|---|---|
| 15 | 1 local Luan = require "luan:Luan.luan" |
| 2 local error = Luan.error | |
| 3 local Parsers = require "luan:Parsers.luan" | |
| 4 local json_string = Parsers.json_string or error() | |
| 5 local Io = require "luan:Io.luan" | |
| 6 local Http = require "luan:http/Http.luan" | |
| 7 local Shared = require "site:/lib/Shared.luan" | |
| 8 local chats_html = Shared.chats_html or error() | |
| 9 | |
| 10 | |
| 11 return function() | |
| 12 Io.stdout = Http.response.text_writer() | |
| 13 %> | |
| 14 gotChats(<%=json_string(`chats_html()`)%>); | |
| 15 <% | |
| 16 end |
