From 4e3d8e3110f425b96a2d6c7595e23b0b1370839d Mon Sep 17 00:00:00 2001 From: Owen Fraser-Green Date: Tue, 10 Jul 2012 01:04:31 +0200 Subject: [PATCH] Fixed example to correct path for compiled dust template. --- dust/README.md | 4 ++-- dust/sample/app/views/index.scala.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dust/README.md b/dust/README.md index e78c89c..6d7706e 100644 --- a/dust/README.md +++ b/dust/README.md @@ -27,14 +27,14 @@ to your plugin.sbt * Put your dust template .tl files under the ```app/assets``` directory * Reference the generated .js in a `````` +`````` * Render the template when you receive the json ``` $(function() { $.get('@routes.Application.data', function(data) { console.log('data = ' + JSON.stringify(data)); - dust.render('example.tl', data, function(err, out) { + dust.render('example', data, function(err, out) { $('#dust_pan').html(err ? err : out); }); }); diff --git a/dust/sample/app/views/index.scala.html b/dust/sample/app/views/index.scala.html index fb67076..a1672f8 100644 --- a/dust/sample/app/views/index.scala.html +++ b/dust/sample/app/views/index.scala.html @@ -8,12 +8,12 @@ Test - +