-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Austin Seipp
committed
Sep 2, 2011
1 parent
14db1f8
commit 7513217
Showing
7 changed files
with
79 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
table channels : { Channel : channel {} } | ||
|
||
fun get () = | ||
ch <- channel; | ||
dml (INSERT INTO channels (Channel) VALUES ({[ch]})); | ||
return <xml><body onload={recv ch}> | ||
Hi. | ||
</body></xml> | ||
|
||
fun post () = | ||
ch <- channel; | ||
dml (INSERT INTO channels (Channel) VALUES ({[ch]})); | ||
return <xml><body onload={recv ch}> | ||
Hi! | ||
</body></xml> | ||
|
||
fun main () = return <xml><body> | ||
<li><a link={get ()}>Get</a></li> | ||
<li><form><submit action={post}/></form></li> | ||
</body></xml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
database dbname=goback | ||
sql goback.sql | ||
rewrite all Goback/* | ||
safeGet get | ||
|
||
goback |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
val main : {} -> transaction page |