diff options
author | lihaoyi <haoyi.sg@gmail.com> | 2014-11-23 05:37:28 -0800 |
---|---|---|
committer | lihaoyi <haoyi.sg@gmail.com> | 2014-11-23 05:37:28 -0800 |
commit | 1c4cb72b209ab11c9e52c3bb490adf759f17fd0c (patch) | |
tree | fddc2a4f7b4848902b31aa4fa5c77023045f0166 /examples/crossBuilds/clientserver2/server/src/main/scala/simple/Page.scala | |
parent | bc640b3b440735a9343185856fdbec2ab064a369 (diff) | |
download | hands-on-scala-js-1c4cb72b209ab11c9e52c3bb490adf759f17fd0c.tar.gz hands-on-scala-js-1c4cb72b209ab11c9e52c3bb490adf759f17fd0c.tar.bz2 hands-on-scala-js-1c4cb72b209ab11c9e52c3bb490adf759f17fd0c.zip |
Added autowire section in client-server
Diffstat (limited to 'examples/crossBuilds/clientserver2/server/src/main/scala/simple/Page.scala')
-rw-r--r-- | examples/crossBuilds/clientserver2/server/src/main/scala/simple/Page.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/crossBuilds/clientserver2/server/src/main/scala/simple/Page.scala b/examples/crossBuilds/clientserver2/server/src/main/scala/simple/Page.scala new file mode 100644 index 0000000..ce6617c --- /dev/null +++ b/examples/crossBuilds/clientserver2/server/src/main/scala/simple/Page.scala @@ -0,0 +1,21 @@ +package simple +import scalatags.Text.all._ + +object Page{ + val boot = + "Client().main(document.getElementById('contents'))" + val skeleton = + html( + head( + script(src:="/client-fastopt.js"), + link( + rel:="stylesheet", + href:="http://yui.yahooapis.com/pure/0.5.0/pure-min.css" + ) + ), + body( + onload:=boot, + div(id:="contents") + ) + ) +} |