
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
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
Unknown package
We found that template_wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.