Skip to content

Commit 01cad3f

Browse files
Gian PerroneGian Perrone
authored andcommitted
Corrected errors in the tutorial so that everything should compile again
1 parent 0c5b49f commit 01cad3f

File tree

12 files changed

+25
-25
lines changed

12 files changed

+25
-25
lines changed

step3.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ <h3>urblog.ur</h3>
7070
&lt;xml&gt;
7171
&lt;head&gt;
7272
&lt;title&gt;All Entries&lt;/title&gt;
73-
&lt;link rel="stylesheet" type="text/css" href="https://github.com/gian/urtutorial/raw/master/step3/style.css"/&gt;
73+
&lt;link rel="stylesheet" type="text/css" href="http://expdev.net/urtutorial/step3/style.css"/&gt;
7474
&lt;/head&gt;
7575
&lt;body&gt;
7676
&lt;h1&gt;All Entries&lt;/h1&gt;
@@ -85,7 +85,7 @@ <h3>urblog.ur</h3>
8585
<h3>urweb.urp</h3>
8686

8787
<pre class="code">
88-
allow url https://github.com/gian/urtutorial/raw/master/step3/style.css
88+
allow url http://expdev.net/urtutorial/step4/style.css
8989
rewrite style Urblog/blogEntry blogEntry
9090
database dbname=urblog
9191
sql urblog.sql

step4.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h3>urblog.ur</h3>
5151
| Some r =&gt; &lt;xml&gt;
5252
&lt;head&gt;
5353
&lt;title&gt;{[r.Entry.Title]}&lt;/title&gt;
54-
&lt;link rel="stylesheet" type="text/css" href="https://github.com/gian/urtutorial/raw/master/step3/style.css"/&gt;
54+
&lt;link rel="stylesheet" type="text/css" href="http://expdev.net/urtutorial/step4/style.css"/&gt;
5555
&lt;/head&gt;
5656
&lt;body&gt;
5757
&lt;h1&gt;{[r.Entry.Title]}&lt;/h1&gt;
@@ -140,7 +140,7 @@ <h3>urblog.urp</h3>
140140
<p>We need to update our project file and style sheet (adding the rewrite for the new style declaration):</p>
141141

142142
<pre class="code">
143-
allow url https://github.com/gian/urtutorial/raw/master/step4/style.css
143+
allow url http://expdev.net/urtutorial/step4/style.css
144144
rewrite style Urblog/blogEntry blogEntry
145145
rewrite style Urblog/blogComment blogComment
146146
database dbname=urblog

step4/urblog.ur

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fun list () =
3333
<xml>
3434
<head>
3535
<title>All Entries</title>
36-
<link rel="stylesheet" type="text/css" href="https://github.com/gian/urtutorial/raw/master/step4/style.css"/>
36+
<link rel="stylesheet" type="text/css" href="http://expdev.net/urtutorial/step4/style.css"/>
3737
</head>
3838
<body>
3939
<h1>All Entries</h1>
@@ -55,7 +55,7 @@ and detail (i:int) =
5555
| Some r => <xml>
5656
<head>
5757
<title>{[r.Entry.Title]}</title>
58-
<link rel="stylesheet" type="text/css" href="https://github.com/gian/urtutorial/raw/master/step4/style.css"/>
58+
<link rel="stylesheet" type="text/css" href="http://expdev.net/urtutorial/step4/style.css"/>
5959
</head>
6060
<body>
6161
<h1>{[r.Entry.Title]}</h1>

step4/urblog.urp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
allow url https://github.com/gian/urtutorial/raw/master/step4/style.css
1+
allow url http://expdev.net/urtutorial/step4/style.css
22
rewrite style Urblog/blogEntry blogEntry
33
rewrite style Urblog/blogComment blogComment
44
database dbname=urblog

step5.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h3>urblog.ur</h3>
5252
&lt;p&gt;Your Comment:&lt;br/&gt;&lt;/p&gt;&lt;textarea{#Body}/&gt;
5353
&lt;br/&gt;&lt;br/&gt;
5454
&lt;submit value="Add Comment" action={handler id}/&gt;
55-
&lt;button value="Cancel" onclick={set s False}/&gt;&lt;/form&gt;&lt;/xml&gt;
55+
&lt;button value="Cancel" onclick={ fn _ =&gt; set s False}/&gt;&lt;/form&gt;&lt;/xml&gt;
5656
[...]
5757
</pre>
5858

@@ -76,7 +76,7 @@ <h3>urblog.ur</h3>
7676
[...]
7777
commentSource &lt;- source False;
7878
[...]
79-
&lt;button value="Add Comment" onclick={set commentSource True}/&gt;
79+
&lt;button value="Add Comment" onclick={ fn _ =&gt; set commentSource True}/&gt;
8080
&lt;/div&gt;
8181
&lt;div class={commentForm}&gt;
8282
&lt;dyn signal={s &lt;- signal commentSource;

step5/urblog.ur

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ and mkCommentForm (id:int) s : xbody =
3131
<p>Your Comment:<br/></p><textarea{#Body}/>
3232
<br/><br/>
3333
<submit value="Add Comment" action={handler id}/>
34-
<button value="Cancel" onclick={set s False}/></form></xml>
34+
<button value="Cancel" onclick={ fn _ => set s False}/></form></xml>
3535

3636
and list () =
3737
rows <- queryX (SELECT * FROM entry)
@@ -48,7 +48,7 @@ and list () =
4848
<xml>
4949
<head>
5050
<title>All Entries</title>
51-
<link rel="stylesheet" type="text/css" href="https://github.com/gian/urtutorial/raw/master/step5/style.css"/>
51+
<link rel="stylesheet" type="text/css" href="http://expdev.net/urtutorial/step5/style.css"/>
5252
</head>
5353
<body>
5454
<h1>All Entries</h1>
@@ -71,14 +71,14 @@ and detail (i:int) =
7171
| Some r => <xml>
7272
<head>
7373
<title>{[r.Entry.Title]}</title>
74-
<link rel="stylesheet" type="text/css" href="https://github.com/gian/urtutorial/raw/master/step5/style.css"/>
74+
<link rel="stylesheet" type="text/css" href="http://expdev.net/urtutorial/step5/style.css"/>
7575
</head>
7676
<body>
7777
<h1>{[r.Entry.Title]}</h1>
7878
<h2>By {[r.Entry.Author]} at {[r.Entry.Created]}</h2>
7979
<div class={blogEntry}>
8080
<p>{[r.Entry.Body]}</p>
81-
<button value="Add Comment" onclick={set commentSource True}/>
81+
<button value="Add Comment" onclick={ fn _ => set commentSource True}/>
8282
</div>
8383
<div class={commentForm}>
8484
<dyn signal={s <- signal commentSource;

step5/urblog.urp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
allow url https://github.com/gian/urtutorial/raw/master/step5/style.css
1+
allow url http://expdev.net/urtutorial/step5/style.css
22
rewrite style Urblog/blogEntry blogEntry
33
rewrite style Urblog/blogComment blogComment
44
rewrite style Urblog/commentForm commentForm

step6.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h3>urblog.urp</h3>
3939
<p>Now we need to include our new Crud module:</p>
4040

4141
<pre class="code">
42-
allow url https://github.com/gian/urtutorial/raw/master/step6/style.css
42+
allow url http://expdev.net/urtutorial/step6/style.css
4343
rewrite style Urblog/blogEntry blogEntry
4444
rewrite style Urblog/blogComment blogComment
4545
rewrite style Urblog/commentForm commentForm

step6/urblog.ur

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ and mkCommentForm (id:int) s : xbody =
3131
<p>Your Comment:<br/></p><textarea{#Body}/>
3232
<br/><br/>
3333
<submit value="Add Comment" action={handler}/>
34-
<button value="Cancel" onclick={set s False}/></form></xml>
34+
<button value="Cancel" onclick={ fn _ => set s False}/></form></xml>
3535

3636
and list () =
3737
rows <- queryX (SELECT * FROM entry)
@@ -48,7 +48,7 @@ and list () =
4848
<xml>
4949
<head>
5050
<title>All Entries</title>
51-
<link rel="stylesheet" type="text/css" href="https://github.com/gian/urtutorial/raw/master/step6/style.css"/>
51+
<link rel="stylesheet" type="text/css" href="http://expdev.net/urtutorial/step6/style.css"/>
5252
</head>
5353
<body>
5454
<h1>All Entries</h1>
@@ -71,14 +71,14 @@ and detail (i:int) =
7171
| Some r => <xml>
7272
<head>
7373
<title>{[r.Entry.Title]}</title>
74-
<link rel="stylesheet" type="text/css" href="https://github.com/gian/urtutorial/raw/master/step6/style.css"/>
74+
<link rel="stylesheet" type="text/css" href="http://expdev.net/urtutorial/step6/style.css"/>
7575
</head>
7676
<body>
7777
<h1>{[r.Entry.Title]}</h1>
7878
<h2>By {[r.Entry.Author]} at {[r.Entry.Created]}</h2>
7979
<div class={blogEntry}>
8080
<p>{[r.Entry.Body]}</p>
81-
<button value="Add Comment" onclick={set commentSource True}/>
81+
<button value="Add Comment" onclick={ fn _ => set commentSource True}/>
8282
</div>
8383
<div class={commentForm}>
8484
<dyn signal={s <- signal commentSource;

step6/urblog.urp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
allow url https://github.com/gian/urtutorial/raw/master/step6/style.css
1+
allow url http://expdev.net/urtutorial/step6/style.css
22
rewrite style Urblog/blogEntry blogEntry
33
rewrite style Urblog/blogComment blogComment
44
rewrite style Urblog/commentForm commentForm

0 commit comments

Comments
 (0)