Skip to content

Commit

Permalink
Fixing tab spacing, added changelog notice, moved dust config amd int…
Browse files Browse the repository at this point in the history
…o try block with dust.
  • Loading branch information
jmparsons committed May 25, 2016
1 parent c26b076 commit c3bbd46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -11,7 +11,7 @@ This plugin is a continuation of [play-dustjs][play-dustjs] built for [sbt-web][
Add the sbt plugin to your `project/plugins.sbt` file:

```scala
addSbtPlugin("com.jmparsons.sbt" % "sbt-dustjs-linkedin" % "1.0.4")
addSbtPlugin("com.jmparsons.sbt" % "sbt-dustjs-linkedin" % "1.0.5")
```

Two options are available:
Expand All @@ -20,7 +20,7 @@ Option | Description
--------------------|------------------------------------------------------
helpers | Loads in DustJs helpers if they are available.
infoNotice | Show DustJs version number and if helpers are active.
amdModule | Compile the templates as AMD modules. The templates will require the module 'dust.core' (as compiled by the dust template compile)
amdModule | Compile the templates as AMD modules. The templates will require the module 'dust.core' (as compiled by the dust template compile)

Example:

Expand Down Expand Up @@ -123,6 +123,10 @@ JsEngineKeys.engineType := JsEngineKeys.EngineType.Node

## Changelog

1.0.5 - May 25, 2016

- Added template compiling as AMD module

1.0.4 - May 5, 2016

- Converted to using `package.json` for installing dependencies
Expand Down
7 changes: 3 additions & 4 deletions src/main/resources/dust-shell.js
Expand Up @@ -19,14 +19,13 @@

try {
var dust = require("dustjs-linkedin");
if (options.amdModule) {
dust.config.amd = true;
}
} catch (e) {
console.error("DustJs: " + e);
}

if (options.amdModule){
dust.config.amd = true;
}

if (options.helpers) {
try {
require("dustjs-helpers");
Expand Down

0 comments on commit c3bbd46

Please sign in to comment.