We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cddb81e commit 152f5d9Copy full SHA for 152f5d9
src/index.js
@@ -1,5 +1,5 @@
1
import md5 from 'md5'
2
-import { compile } from 'dustjs-linkedin'
+import dust, { compile } from 'dustjs-linkedin'
3
import { basename, dirname, extname, resolve } from 'path'
4
5
const { floor, random } = Math
@@ -37,8 +37,11 @@ function resolvePartials (source, parentPath) {
37
}
38
39
40
-// TODO: options
41
-export default function dustjs () {
+export default function dustjs (options = {}) {
+ if (options.whitespace === true) {
42
+ dust.config.whitespace = true
43
+ }
44
+
45
return {
46
name: 'dustjs',
47
transform (source, path) {
0 commit comments