Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to beautify html through js-beautify #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m-mujica
Copy link
Member

@m-mujica m-mujica commented Feb 7, 2017

@justinbmeyer before I write any tests, wanted to run the idea by you....

generate(docMap, {
	html: {
		templates: "...",
		dependencies: {}
	},
	beautifyHtml: true,
	dest: "....",
	parent: "..."
});

With this change you could run the rendered html through js-beautify, you could either set the flag to true or pass an options object.

Not a game-changer feature, but I thought it was cool to write out some nice looking html :)

@leoj3n
Copy link
Contributor

leoj3n commented Sep 21, 2017

Not a bad idea 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants