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 print the compiled tags #1006

Closed
weepy opened this issue Jul 19, 2015 · 2 comments
Closed

pretty print the compiled tags #1006

weepy opened this issue Jul 19, 2015 · 2 comments

Comments

@weepy
Copy link

weepy commented Jul 19, 2015

would it be possible to prettify the output html over several lines ?

riot.tag('song_footer', '<artist> \
  <photo></photo> \
  <name>{this.artist.name}</name>\
</artist>)'

It would be much nicer to debug.

@cognitom
Copy link
Member

As a temporally workaround, we could override HTML parser for this purpose.
But supporting sourcemap seems better option for me. Thought?

@GianlucaGuarini
Copy link
Member

Riot@3.0.0 will support source maps for debugging so I will close this issue in favor of riot/compiler#56

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

No branches or pull requests

4 participants