On Github jamesward / intro-to-sbt-web
addSbtPlugin("com.typesafe.sbt" % "sbt-blah" % "1.0.0-M2a")
$ -> console.log("hello, world from coffeescript")app/views/foo.scala.html
<script src='@routes.Assets.at("index.js")'></script>
body { background-color: #000066; }app/views/foo.scala.html
<link rel='stylesheet' href='@routes.Assets.at("index.css")'>
activator start || activator stage || activator dist
find target/web -name "*.md5"
activator start || activator stage || activator dist
find target/web -name "*.gz"
var assert = require("assert"); describe("Foo", function() { it("should correctly add numbers", function() { assert.equal(2, 1+1); }); });
requirejs.config({ paths: { 'jquery': ['./lib/jquery/jquery'], 'bootstrap': ['./lib/bootstrap/js/bootstrap'] }, shim: { 'jquery': { exports : '$' }, 'bootstrap': { deps: ['jquery'] } } }); require(['bootstrap'], function(bootstrap) { $('#myModal').modal(); });
<script data-main="@routes.Assets.at("main")" src="@routes.WebJarAssets.at(WebJarAssets.locate("require.js"))"></script>