Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

template_wrapper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

template_wrapper

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 28 Mar 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc