diff website/src/diff.html @ 370:7999601586b1

minor documentation
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 17 Apr 2015 07:18:39 -0600
parents c207be7cf45d
children f08cefa4594c
line wrap: on
line diff
--- a/website/src/diff.html	Fri Apr 17 06:25:38 2015 -0600
+++ b/website/src/diff.html	Fri Apr 17 07:18:39 2015 -0600
@@ -4,7 +4,7 @@
 		<meta charset="utf-8">
 		<meta name="viewport" content="width=device-width, initial-scale=1">
 
-		<title>Luan Documentation</title>
+		<title>How Luan differs from Lua</title>
 		
 		<link href="http://www.simplyhtml.org/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
 		<link rel="stylesheet" href="http://www.simplyhtml.org/assets/font-awesome/css/font-awesome.min.css">
@@ -15,9 +15,10 @@
 	</head>
 	<body>
 		<div container>
+			<div><small><a href="/">Luan</a></small></div>
 			<h1>How Luan differs from Lua</h1>
 
-			<p>This document explains how <a href="/">Luan</a> differs from <a href="http://www.lua.org">Lua</a> as described in the <a href="http://www.lua.org/manual/5.3/">Lua 5.3 Reference Manual</a>.</p>
+			<p>This document explains how Luan differs from <a href="http://www.lua.org">Lua</a> as described in the <a href="http://www.lua.org/manual/5.3/">Lua 5.3 Reference Manual</a>.</p>
 
 			<h2 margin-top="1em">Contents</h2>
 
@@ -175,7 +176,7 @@
 
 			<tt><pre>
 	local name = "Bob"
-	Io.stdout.write( %>
+	require("luan:Io").stdout.write( %>
 	Hello <%=name%>!
 	Bye <%=name%>.
 	<% )
@@ -204,7 +205,14 @@
 	write( %>Hello <%=name%>!<% )
 			</pre></tt>
 
-			<p>This template expression returns 3 values: "Hello ", "Bob", and "!".  The strings in template expressions may be multiple lines.</p>
+			<p>This is equivalent to the code:</p>
+
+			<tt><pre>
+	local name = "Bob"
+	write( "Hello ", name, "!" )
+			</pre></tt>
+
+			<p>The strings in template expressions may be multiple lines.</p>
 
 		</div>