summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2010-09-30 18:29:59 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2010-09-30 18:29:59 -0400
commit81934ea4c2cf2260b6000e9be4d13e328204929a (patch)
tree049d9d5397185e0cc0589cbfe86e882d41087b63 /demo
parentdfe1d4fdd1640b07a05db176d9dc89fcbb124edf (diff)
Demo improvements
Diffstat (limited to 'demo')
-rw-r--r--demo/counter.ur1
-rw-r--r--demo/prose2
2 files changed, 2 insertions, 1 deletions
diff --git a/demo/counter.ur b/demo/counter.ur
index b11fc936..23768ad3 100644
--- a/demo/counter.ur
+++ b/demo/counter.ur
@@ -1,3 +1,4 @@
+(* Workhorse function, which [main] will call *)
fun counter n = return <xml><body>
Current counter: {[n]}<br/>
<a link={counter (n + 1)}>Increment</a><br/>
diff --git a/demo/prose b/demo/prose
index df0ed0a9..1cc9a6ac 100644
--- a/demo/prose
+++ b/demo/prose
@@ -5,7 +5,7 @@
<blockquote><pre>./configure
make
sudo make install
-urweb -demo /Demo demo</pre></blockquote></p>
+urweb -noEmacs -demo /Demo demo</pre></blockquote></p>
<p>The <tt>-demo /Demo</tt> flag says that we want to build a demo application that expects its URIs to begin with <tt>/Demo</tt>. The final argument <tt>demo</tt> gives the path to a directory housing demo files. One of the files in that directory is <tt>prose</tt>, a file describing the different demo pieces with HTML. Some lines of <tt>prose</tt> have the form <tt><i>foo</i>.urp</tt>, naming particular project files (with the extension <tt>.urp</tt>) in that directory.</p>