Mercurial Hosting > luan
view website/src/pil.html.luan @ 386:db23f654f87d
make all of website use luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 23 Apr 2015 18:09:12 -0600 |
parents | website/src/pil.html@83efd1e3685c |
children | 23d075ce1e48 |
line wrap: on
line source
local Io = require "luan:Io" local Html = require "luan:Html" local Http = require "luan:web/Http" function service() Io.stdout = Http.response.text_writer() Html.simply_html_page{ head = function() %> <title>Programming in Lua</title> <% end; body = function() %> <div container> <div><small><a href="/">Luan</a></small></div> <h1 margin-bottom="1em">Programming in Lua</h1> <p>Even though <a href="http://www.lua.org/pil/">Programming in Lua</a> is about Lua, not Luan, it still serves as an excellent introduction to Luan since the languages are so close.</p> </div> <% end; } end