diff options
author | Li Haoyi <haoyi@dropbox.com> | 2014-11-07 08:51:18 -0800 |
---|---|---|
committer | Li Haoyi <haoyi@dropbox.com> | 2014-11-07 08:51:18 -0800 |
commit | 00b8d7005e233bafced3467174e95cf6edb6eec1 (patch) | |
tree | 8d10038c70fe81e8c47e7b4e0ca95a51f956f410 /book/src/main/scalatex/book/Index.scalatex | |
parent | 75e505e6a433657cff28501f296605012e1e759a (diff) | |
download | hands-on-scala-js-00b8d7005e233bafced3467174e95cf6edb6eec1.tar.gz hands-on-scala-js-00b8d7005e233bafced3467174e95cf6edb6eec1.tar.bz2 hands-on-scala-js-00b8d7005e233bafced3467174e95cf6edb6eec1.zip |
First flesh out of Semantic Differences
Diffstat (limited to 'book/src/main/scalatex/book/Index.scalatex')
-rw-r--r-- | book/src/main/scalatex/book/Index.scalatex | 65 |
1 files changed, 35 insertions, 30 deletions
diff --git a/book/src/main/scalatex/book/Index.scalatex b/book/src/main/scalatex/book/Index.scalatex index 2ac629b..8b1de5b 100644 --- a/book/src/main/scalatex/book/Index.scalatex +++ b/book/src/main/scalatex/book/Index.scalatex @@ -1,46 +1,51 @@ @sect("Hands-on Scala.js", "Writing client-side web applications in Scala") - @div(cls:="pure-g") - @div(cls:="pure-u-1 pure-u-md-13-24") - @hl.ref("examples/demos/src/main/scala/Splash.scala", "var x") + @div(cls:="pure-g") + @div(cls:="pure-u-1 pure-u-md-13-24") + @hl.ref("examples/demos/src/main/scala/Splash.scala", "var x") - @div(cls:="pure-u-1 pure-u-md-11-24") - @canvas(id:="canvas1", display:="block") - @script("Splash().main(document.getElementById('canvas1'))") + @div(cls:="pure-u-1 pure-u-md-11-24") + @canvas(id:="canvas1", display:="block") + @script("Splash().main(document.getElementById('canvas1'))") - @p - @a("Scala.js", href:="http://www.scala-js.org/") is a compiler that compiles Scala source code to equivalent Javascript code. That lets you write Scala code that you can run in a web browser, or other environments (Chrome plugins, Node.js, etc.) where Javascript is supported. + @p + @a("Scala.js", href:="http://www.scala-js.org/") is a compiler that compiles Scala source code to equivalent Javascript code. That lets you write Scala code that you can run in a web browser, or other environments (Chrome plugins, Node.js, etc.) where Javascript is supported. - @p - This book contains something for all levels of experience with Scala.js: absolute beginners can get started with the Introduction and Hands-on tutorial, people who have used it before can skip ahead to the later parts of the tutorial, building a canvas app or dynamic HTML page. Intermediate users will find the chapters on cross-publishing a Scala.js library interesting, and even experienced users will find the In-depth Documention useful. + @p + This book contains something for all levels of experience with Scala.js: absolute beginners can get started with the Introduction and Hands-on tutorial, people who have used it before can skip ahead to the later parts of the tutorial, building a canvas app or dynamic HTML page. Intermediate users will find the chapters on cross-publishing a Scala.js library interesting, and even experienced users will find the In-depth Documention useful. - @sect("Intro to Scala.js") - @Intro.template + @sect("Intro to Scala.js") + @Intro.template - @sect("Getting Started") - @handson.GettingStarted.template + @sect("Getting Started") + @handson.GettingStarted.template - @sect("Making a Canvas App") - @handson.CanvasApp.template + @sect("Making a Canvas App") + @handson.CanvasApp.template - @sect("Interactive Web Pages") - @handson.WebPage.template + @sect("Interactive Web Pages") + @handson.WebPage.template - @sect("Cross-platform Modules") - @handson.CrossModules.template + @sect("The Scala.js Command Line") + @handson.CommandLine.template + @sect("Cross-platform Modules") + @handson.CrossModules.template - @sect("Integrating Client and Server") - @handson.ClientServer.template + @sect("Integrating Client and Server") + @handson.ClientServer.template @sect("Scala.js in Depth", "Exploring Scala.js") - @sect("Javascript Interoperability") - @indepth.JavascriptInterop.template + @p + This half of the book dives into a few aspects of Scala.js much more deeply that the hands-on introduction does. It's aimed at someone who has already used Scala.js, and wants to explore the edge-cases or how things work under-the-cover. It's not a formal specification; rather, it's aim is to be a useful reference to read instead of (or in preparation for) digging into the implementation code. - @sect("Deviations from Scala-JVM") - @indepth.SemanticDifferences.template + @sect("Javascript Interoperability") + @indepth.JavascriptInterop.template - @sect("The Compilation Pipeline") - @indepth.CompilationPipeline.template + @sect("Deviations from Scala-JVM") + @indepth.SemanticDifferences.template - @sect("Scala.js' Design Space") - @indepth.DesignSpace.template
\ No newline at end of file + @sect("The Compilation Pipeline") + @indepth.CompilationPipeline.template + + @sect("Scala.js' Design Space") + @indepth.DesignSpace.template
\ No newline at end of file |