Mercurial Hosting > chat
view src/get_chats.js.luan @ 75:377bdda60f0b
read up to
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 09 Mar 2025 18:26:49 -0600 |
parents | 8b8905f63d80 |
children |
line wrap: on
line source
local Luan = require "luan:Luan.luan" local error = Luan.error local Parsers = require "luan:Parsers.luan" local json_string = Parsers.json_string or error() local Io = require "luan:Io.luan" local Http = require "luan:http/Http.luan" local Shared = require "site:/lib/Shared.luan" local chats_html = Shared.chats_html or error() return function() Io.stdout = Http.response.text_writer() %> gotChats(<%=json_string(`chats_html()`)%>); <% end