Use dust.log instead of console.log
Report dust compilation errors to webpack
Go back to the result registering the template rather than returning a function, but require dust in the result so it actually works
Remove leading path separator in name if present