To use Scalate you will need:
To run the sitegen sample you will need to install:
Download a distribution such as 1.6.0 zip
Unzip the distribution archive, i.e. scalate-1.6.0-windows-bin.zip to the directory you wish to install Scalate 1.6.0. These instructions assume you chose C:\Program Files\Scala. The subdirectory scalate-1.6.0 will be created from the archive.
C:\Program Files\Scala\scalate-1.6.0\bin directory to the PATH environment variable:
PATH variable in the user variables prepending the value C:\Program Files\Scala\scalate-1.6.0.JAVA\_HOME exists in your user variables or in the system variables and it is set to the location of your JDK (e.g. C:\Program Files\Java\jdk1.5.0\_02).%JAVA\_HOME%\bin is in your PATH environment variable.cmd.Run the following to verify that it is correctly installed.
scalatescalate-1.6.0-unix-bin.tar.gz to the directory you wish to install Scalate 1.6.0. These instructions assume you chose /usr/local/scala. The subdirectory scalate-1.6.0 will be created from the archive.In a command terminal, prepend the PATH variable with the bin directory in the scalate release.
export PATH=/usr/local/scala/scalate-1.6.0/bin:$PATHMake sure that JAVA\_HOME is set to the location of your JDK.
export JAVA_HOME=/usr/java/jdk1.5.0_02Make sure that $JAVA\_HOME/bin is in your PATH environment variable.
export PATH=$JAVA_HOME/bin:$PATHRun the following to verify that it is installed correctly
scalateIf you use OS X then we highly recommend using Homebrew to manage installation of tools.
Once you have Homebrew installed you can install Scalate via this command
brew install scalate
The scalate executable should now be available from any terminal.
To verify this works try typing
scalateScalate can be used as part of a Maven build by adding the following dependencies into your POM:
<dependencies>
<dependency>
<groupId>org.fusesource.scalate</groupId>
<artifactId>scalate-wikitext_2.10</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>org.fusesource.scalate</groupId>
<artifactId>scalate-page_2.10</artifactId>
<version>1.6.0</version>
</dependency>
<!-- testing -->
<dependency>
<groupId>org.fusesource.scalate</groupId>
<artifactId>scalate-test_2.10</artifactId>
<version>1.6.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Note: The path to your local Maven repository .m2 cannot have any spaces.
Once you have the application working and you've played with the Console you might want to dive deeper into Scalate and understand how it works.