Skip to content
This repository was archived by the owner on Aug 5, 2020. It is now read-only.

Commit 8a24a03

Browse files
committed
Merge pull request #64 from novascreen/allow-dust-extension
allow *.dust files as well as *.tmpl files for templates
2 parents 333484f + e0e0185 commit 8a24a03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dust/duster.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ dust.emitRelativePartial = function(name, base, chunk, context) {
259259
return chunk.partial(url, context).end();
260260
}
261261

262-
// .tmpl files are compiled into a template string and appended
262+
// .tmpl and .dust files are compiled into a template string and appended
263263
// to the output so they can be used on the client side.
264-
if (url.match(/([^\/\\]*)\.tmpl$/)) {
264+
if (url.match(/([^\/\\]*)\.(tmpl|dust)$/)) {
265265
var templateName = RegExp.$1
266266
, source = pragmify(data, {whitespace: false})
267267
, compiled;

0 commit comments

Comments
 (0)