ruby on rails - Formatting ERB Templates automatically in textmate -


when writing erb templates in ruby on rails using textmate formatting hand pretty sucks.

do know of textmate bundle handles formatting of erb templates/views? googling has found nothing. thanks!

i think best solution use html (rails) bundle. , when want tidy something, you'll need go bundles menu > html > tidy.

that coupled indent selection (--[) , handles of reformatting needs.

note: unfortunately, when in html (rails) bundle, normal tidy shortcut --h gets overridden , instead launches "create partial selected text" when in *.html.erb file. i'm sure there's way change hasn't been big enough deal me investigate.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -