summaryrefslogtreecommitdiff
path: root/book/src/main/scalatex/book/handson/PublishingModules.scalatex
diff options
context:
space:
mode:
authorlihaoyi <haoyi.sg@gmail.com>2014-11-23 16:47:15 -0800
committerlihaoyi <haoyi.sg@gmail.com>2014-11-23 16:47:15 -0800
commit3547ab4bd7e84818242d15ba813d9312d2456b09 (patch)
tree9595d4ca1781d60d93caa7ba947c745837a33f91 /book/src/main/scalatex/book/handson/PublishingModules.scalatex
parent1c4cb72b209ab11c9e52c3bb490adf759f17fd0c (diff)
downloadhands-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/handson/PublishingModules.scalatex')
-rw-r--r--book/src/main/scalatex/book/handson/PublishingModules.scalatex7
1 files changed, 4 insertions, 3 deletions
diff --git a/book/src/main/scalatex/book/handson/PublishingModules.scalatex b/book/src/main/scalatex/book/handson/PublishingModules.scalatex
index 7c55cd0..05aa87f 100644
--- a/book/src/main/scalatex/book/handson/PublishingModules.scalatex
+++ b/book/src/main/scalatex/book/handson/PublishingModules.scalatex
@@ -1,3 +1,4 @@
+@import BookData._
@p
We've spent several chapters exploring the experience of making web apps using Scala.js, but any large app (web or not!) likely relies on a host of libraries in order to implement large chunks of its functionality. Ideally these libraries would be re-usable, and can be shared among different projects, teams or even companies.
@@ -54,11 +55,11 @@
@p
However, when it comes to actually formatting the date, we have a problem: Javascript and Java provide different utilities for formatting dates! They both let you format them, but they provide different APIs. Thus, to do the formatting of each individual date, we call out to the @hl.scala{Platform.format} function, which is implemented twice: once in @code{js/} and once in @code{jvm/}:
- @div(cls:="pure-g")
- @div(cls:="pure-u-1 pure-u-md-1-2")
+ @split
+ @half
@hl.ref("examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala")
- @div(cls:="pure-u-1 pure-u-md-1-2")
+ @half
@hl.ref("examples/crossBuilds/simple/jvm/src/main/scala/simple/Platform.scala")
@p