view website/src/pil.html.luan @ 387:23d075ce1e48

add website/src/Shared.luan
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 23 Apr 2015 18:16:15 -0600
parents db23f654f87d
children 2f5cc9c2cbf0
line wrap: on
line source

local Io = require "luan:Io"
local Html = require "luan:Html"
local Http = require "luan:web/Http"
local Shared = require "site:/Shared"


function service()
	Io.stdout = Http.response.text_writer()
	Html.simply_html_page{
		head = function() %>
			<title>Programming in Lua</title>
<%		end;
		body = function() %>
		<div container>
			<% Shared.header() %>
			<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