smfoote / dust-demo

A web component for trying out Dust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use dust.config.whitespace = true

sethkinast opened this issue · comments

Easier to understand example output, I think. Discuss?

(Requires you to update the version of Dust you're using, but cdnJS has the latest version)

We've gone back and forth on this a few times already, but @tonya and I found that preserving whitespace makes the output much harder to understand when the template is anything more than a couple of lines.

commented

Is this a different option though? We used dust.optimizers.format to turn it on, and that indeed looked ugly, because it copied over the exact spacing from the template, which led to funny extraneous line breaks in the output.

Yeah, it's the same. The thing we were doing was a hack. This is the new
way to do the same thing.

On Tue, Jan 27, 2015 at 2:32 PM, tonya notifications@github.com wrote:

Is this a different option though? We used dust.optimizers.format to turn
it on, and that indeed looked ugly, because it copied over the exact
spacing from the template, which led to funny extraneous line breaks in the
output.


Reply to this email directly or view it on GitHub
#6 (comment).

Until we can come up with a better way of preserving whitespace, I'm going to close this issue.