diff options
author | lihaoyi <haoyi.sg@gmail.com> | 2014-11-23 16:47:15 -0800 |
---|---|---|
committer | lihaoyi <haoyi.sg@gmail.com> | 2014-11-23 16:47:15 -0800 |
commit | 3547ab4bd7e84818242d15ba813d9312d2456b09 (patch) | |
tree | 9595d4ca1781d60d93caa7ba947c745837a33f91 /book/src/main/scalatex/book/Intro.scalatex | |
parent | 1c4cb72b209ab11c9e52c3bb490adf759f17fd0c (diff) | |
download | hands-on-scala-js-3547ab4bd7e84818242d15ba813d9312d2456b09.tar.gz hands-on-scala-js-3547ab4bd7e84818242d15ba813d9312d2456b09.tar.bz2 hands-on-scala-js-3547ab4bd7e84818242d15ba813d9312d2456b09.zip |
Lots of changes
Diffstat (limited to 'book/src/main/scalatex/book/Intro.scalatex')
-rw-r--r-- | book/src/main/scalatex/book/Intro.scalatex | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/book/src/main/scalatex/book/Intro.scalatex b/book/src/main/scalatex/book/Intro.scalatex index 33e0188..26eed70 100644 --- a/book/src/main/scalatex/book/Intro.scalatex +++ b/book/src/main/scalatex/book/Intro.scalatex @@ -1,8 +1,9 @@ +@import BookData._ @p Scala.js compiles Scala code to equivalent, executable Javascript. Here's the compilation of a trivial hello-world example: -@div(cls:="pure-g") - @div(cls:="pure-u-1 pure-u-md-1-2") +@split + @half @hl.scala object Example extends js.JSApp{ def main() = { @@ -12,7 +13,7 @@ } } - @div(cls:="pure-u-1 pure-u-md-1-2") + @half @hl.javascript ScalaJS.c.LExample$.prototype.main__V = (function() { var x = 0; |