tzbob / scalatags-hokko

A Virtual DOM based DOM library for the Hokko FRP implementation.

GitHub

scalatags-hokko

scalatags-hokko and its dependencies are not yet available on maven central, for now you should manually publish them locally. From here on we assume an installation of SBT, guidelines can be found here: http://www.scala-sbt.org/download.html

Compiling scalatags-hokko

scalatags-hokko depends on the hokko FRP library.

Installing hokko:

git clone https://github.com/Tzbob/hokko.git 
cd hokko
git checkout fb67786b902fd79314e52c4351ea95a1ff4079d7

sbt publish-local
cd ..

Compiling scalatags-hokko:

git clone https://github.com/Tzbob/scalatags-hokko.git 
cd scalatags-hokko
git checkout 21525fb001b63243afc2260d5890b4ba899c3310

sbt compile

Running the Example

An example application is available in modules/examples. You can use SBT to prepare the example:

sbt examples/fastOptJS

This compiles the example to a Javascript program. An HTML document to test the program is located in modules/examples/html/resources/index.html:

cd modules/examples/html
$BROWSER index.html