summaryrefslogtreecommitdiff
path: root/book
diff options
context:
space:
mode:
authorLi Haoyi <haoyi@dropbox.com>2014-11-01 10:15:13 -0700
committerLi Haoyi <haoyi@dropbox.com>2014-11-01 10:15:13 -0700
commitc0b06c5e3f3caa60736794143f278c2af5cbe9fb (patch)
treef66c244943702c46daee94aaa1b98a07d6542830 /book
parentaae594fd3c8397abca4cd4e55f538d41b172b4e3 (diff)
downloadhands-on-scala-js-c0b06c5e3f3caa60736794143f278c2af5cbe9fb.tar.gz
hands-on-scala-js-c0b06c5e3f3caa60736794143f278c2af5cbe9fb.tar.bz2
hands-on-scala-js-c0b06c5e3f3caa60736794143f278c2af5cbe9fb.zip
scalatex tests pass
Diffstat (limited to 'book')
-rw-r--r--book/src/main/scalatex/book/WebPage.scalatex8
1 files changed, 4 insertions, 4 deletions
diff --git a/book/src/main/scalatex/book/WebPage.scalatex b/book/src/main/scalatex/book/WebPage.scalatex
index aa45699..c27981e 100644
--- a/book/src/main/scalatex/book/WebPage.scalatex
+++ b/book/src/main/scalatex/book/WebPage.scalatex
@@ -1,3 +1,5 @@
+
+
@p
Most web applications aren't neat little games which live on a single canvas: they are large, structured HTML pages, which involve displaying data (whether from the user or from the web) in multiple ways, while allowing the user to make changes to the data that can be saved back to whatever remote web-service/database it came from.
@@ -17,6 +19,7 @@
@div(id:="div1")
@script("HelloWorld0().main(document.getElementById('div1'))")
+
@p
This approach works, as the above example shows, but has a couple of disadvantages:
@@ -125,8 +128,5 @@
@p
Now that you've gotten a quick overview of the kinds of things you can do with Scalatags, let's move on to the next section of our hands-on tutorial...
-@sect{Using Web Services}
-
- @p
- One half of the web application faces forwards towards the user, managing and rendering HTML or Canvas for the user to view and interact with. Another half faces backwards, talking to various web-services or databases which turn the application from a standalone-widget into part of a greater whole. We've already seen how to make the front half, let's now talk about working with the back half.
+@sect{Using Web Services}