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

Pretty rendering #4

Closed
tshort opened this issue Apr 19, 2018 · 2 comments
Closed

Pretty rendering #4

tshort opened this issue Apr 19, 2018 · 2 comments

Comments

@tshort
Copy link
Contributor

tshort commented Apr 19, 2018

It'd be nice to have an option to pretty-print the html renders and indent to reflect level.

@yurivish
Copy link
Collaborator

yurivish commented Apr 19, 2018

Agreed. It hasn't been a priority yet, but @ninjin also thought it would be nice.

Conveniently, the context design pattern makes it possible to add pretty-printing as a context-specific setting for CSS and DOM nodes:

struct CSS <: Context
    allow_nan_attr_values::Bool
end

struct DOM <: Context
    allow_nan_attr_values::Bool
    noescape::Bool
end

@yurivish
Copy link
Collaborator

And now there is pretty rendering. Thanks, @tshort!

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

No branches or pull requests

2 participants