h1. Template Wrapper
h3. Wrap all your rails views in TextMate-aware containers for easy viewing and editing in development.
h3. Works with Rails 2.3.8 or higher
h2. install and go
> gem install template_wrapper
h3. Rails3
# Gemfile
+ gem "template_wrapper"
> bundle install
h3. Rails 2
# environment.rb Initializer block
+ config.gem 'template_wrapper'
> rake gems:install
h2. OMITTING TEMPLATES FROM THE RENDERER
p. Sometimes you might not want this kind of mucking about (i.e. a partial in your
).
Add this to the top :
<%= skip_wrap(FILE) %>
Alternately, you can change the layout incrementally :
<%= skip_wrap(FILE, :comment) %> # wraps template code in an HTML comment only
<%= skip_wrap(FILE, :blank) %> # skips (default for this method)
<%= skip_wrap(FILE, :icon) %> # icon only
h2. Rake task for an initializer:
> cd /path/to/your/app
> rake template_wrapper:customize
Installs initializer to : config/initializers