简体   繁体   中英

html tidy and rails apps - erb or rthml files. Ruby alternative?

I just installed HTML Tidy plugin for eclipse. I added the html.erb file type and now it will do its magic on my erb files. However it puts in the title tag and changes a lot of my characters to escape characters. How can I stop this from happening - or is there a ruby alternative which will go through my code, reindent, and stick in missing tags? I'm worried about a lot of my erb files since the built in formatter with Aptana is hard to use. I don't see any glaring errors when I view the page, but I'm sure there are some mismatched tags and stuff that I'd like to get rid of. Any recommendations?

我没试过,但发现了Rack :: Tidy

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM