summaryrefslogtreecommitdiff
path: root/book/src/main/scalatex/book/Intro.scalatex
diff options
context:
space:
mode:
Diffstat (limited to 'book/src/main/scalatex/book/Intro.scalatex')
-rw-r--r--book/src/main/scalatex/book/Intro.scalatex7
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;