comparison 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
comparison
equal deleted inserted replaced
369:85bf9f0379aa 370:7999601586b1
2 <html lang="en"> 2 <html lang="en">
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1"> 5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 6
7 <title>Luan Documentation</title> 7 <title>How Luan differs from Lua</title>
8 8
9 <link href="http://www.simplyhtml.org/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet"> 9 <link href="http://www.simplyhtml.org/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
10 <link rel="stylesheet" href="http://www.simplyhtml.org/assets/font-awesome/css/font-awesome.min.css"> 10 <link rel="stylesheet" href="http://www.simplyhtml.org/assets/font-awesome/css/font-awesome.min.css">
11 <script src="http://www.simplyhtml.org/assets/jquery/jquery.min.js"></script> 11 <script src="http://www.simplyhtml.org/assets/jquery/jquery.min.js"></script>
12 12
13 <link href="http://www.simplyhtml.org/assets/simplyhtml/simplyhtml.css" rel="stylesheet"/> 13 <link href="http://www.simplyhtml.org/assets/simplyhtml/simplyhtml.css" rel="stylesheet"/>
14 <script src="http://www.simplyhtml.org/assets/simplyhtml/simplyhtml.js"></script> 14 <script src="http://www.simplyhtml.org/assets/simplyhtml/simplyhtml.js"></script>
15 </head> 15 </head>
16 <body> 16 <body>
17 <div container> 17 <div container>
18 <div><small><a href="/">Luan</a></small></div>
18 <h1>How Luan differs from Lua</h1> 19 <h1>How Luan differs from Lua</h1>
19 20
20 <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> 21 <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>
21 22
22 <h2 margin-top="1em">Contents</h2> 23 <h2 margin-top="1em">Contents</h2>
23 24
24 <div margin-bottom="1em"><a href="#intro">Introduction</a></div> 25 <div margin-bottom="1em"><a href="#intro">Introduction</a></div>
25 26
173 174
174 <p>is equivalent to the code:</p> 175 <p>is equivalent to the code:</p>
175 176
176 <tt><pre> 177 <tt><pre>
177 local name = "Bob" 178 local name = "Bob"
178 Io.stdout.write( %> 179 require("luan:Io").stdout.write( %>
179 Hello <%=name%>! 180 Hello <%=name%>!
180 Bye <%=name%>. 181 Bye <%=name%>.
181 <% ) 182 <% )
182 </pre></tt> 183 </pre></tt>
183 184
202 <tt><pre> 203 <tt><pre>
203 local name = "Bob" 204 local name = "Bob"
204 write( %>Hello <%=name%>!<% ) 205 write( %>Hello <%=name%>!<% )
205 </pre></tt> 206 </pre></tt>
206 207
207 <p>This template expression returns 3 values: "Hello ", "Bob", and "!". The strings in template expressions may be multiple lines.</p> 208 <p>This is equivalent to the code:</p>
209
210 <tt><pre>
211 local name = "Bob"
212 write( "Hello ", name, "!" )
213 </pre></tt>
214
215 <p>The strings in template expressions may be multiple lines.</p>
208 216
209 </div> 217 </div>
210 218
211 <script src="http://www.simplyhtml.org/assets/bootstrap/js/bootstrap.min.js"></script> 219 <script src="http://www.simplyhtml.org/assets/bootstrap/js/bootstrap.min.js"></script>
212 </body> 220 </body>