Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When using the <a href="http://scalate.fusesource.org/documentation/jade-syntax.html#Available_Filters" rel="nofollow">markdown filter</a>, you need to add the scalamd library as runtime dependency:</p> <pre><code>"org.fusesource.scalamd" %% "scalamd" % "1.6" </code></pre> <p>The most recent version can be found on <a href="http://search.maven.org/#search|ga|1|scalamd" rel="nofollow">Maven Central</a></p> <p>Also you can delete the <code>build.sbt</code> file and put the dependencies into <code>build.scala</code> file which makes things a bit simpler.</p> <pre><code>import sbt._ import Keys._ import org.scalatra.sbt._ import org.scalatra.sbt.PluginKeys._ import com.mojolly.scalate.ScalatePlugin._ import ScalateKeys._ object TheRangeBuild extends Build { val Organization = "com.gastove" val Name = "The Range" val Version = "0.1.0-SNAPSHOT" val ScalaVersion = "2.10.0" val ScalatraVersion = "2.2.1" lazy val project = Project( "the-range", file("."), settings = Defaults.defaultSettings ++ ScalatraPlugin.scalatraWithJRebel ++ scalateSettings ++ Seq( organization := Organization, name := Name, version := Version, scalaVersion := ScalaVersion, resolvers += Classpaths.typesafeReleases, libraryDependencies ++= Seq( // adding this Seq to the libraryDependencies "org.scalatra" %% "scalatra" % ScalatraVersion, "org.scalatra" %% "scalatra-scalate" % ScalatraVersion, "org.scalatra" %% "scalatra-specs2" % ScalatraVersion % "test", "ch.qos.logback" % "logback-classic" % "1.0.6" % "runtime", "org.eclipse.jetty" % "jetty-webapp" % "8.1.8.v20121106" % "compile;container", "org.scalatest" %% "scalatest" % "2.0.M5b" % "test", "org.twitter4j" % "twitter4j-core" % "3.0.3", "org.fusesource.scalamd" % "scalamd" % "1.6", "org.eclipse.jetty.orbit" % "javax.servlet" % "3.0.0.v201112011016" % "compile;container;provided;test" artifacts (Artifact("javax.servlet", "jar", "jar")) ), scalateTemplateConfig in Compile &lt;&lt;= (sourceDirectory in Compile){ base =&gt; Seq( TemplateConfig( base / "webapp" / "WEB-INF" / "templates", Seq.empty, /* default imports should be added here */ Seq( Binding("context", "_root_.org.scalatra.scalate.ScalatraRenderContext", importMembers = true, isImplicit = true) ), /* add extra bindings here */ Some("templates") ) ) } ) ++ seq(com.typesafe.startscript.StartScriptPlugin.startScriptForClassesSettings: _*) ) } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload