Mercurial Hosting > luan
comparison website/src/tutorial.html.luan @ 686:33f1b4ad2c9d
more documentation fixes
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 17 Apr 2016 16:39:28 -0600 |
parents | 7cc9d4a53d3b |
children | ca169567ce07 |
comparison
equal
deleted
inserted
replaced
685:1e4b0bc0202d | 686:33f1b4ad2c9d |
---|---|
32 <p>To run this, type <b>luan file:hello</b> on the command line. This should print <b>Hello World</b>.</p> | 32 <p>To run this, type <b>luan file:hello</b> on the command line. This should print <b>Hello World</b>.</p> |
33 | 33 |
34 <p>The syntax here is based on <a href="http://en.wikipedia.org/wiki/JavaServer_Pages">JSP</a>. Let's change it a little:</p> | 34 <p>The syntax here is based on <a href="http://en.wikipedia.org/wiki/JavaServer_Pages">JSP</a>. Let's change it a little:</p> |
35 | 35 |
36 <pre><%=Html.encode[[ | 36 <pre><%=Html.encode[[ |
37 name = "Bob" | 37 local name = "Bob" |
38 %> | 38 %> |
39 Hello <%= name %> | 39 Hello <%= name %> |
40 <% | 40 <% |
41 ]]%></pre> | 41 ]]%></pre> |
42 | 42 |