
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.
It is a HTML5 layuout generator that generates the layout file based upon the HTML5 Boilerplate (http://github.com/paulirish/html5-boilerplate) code.
The generator takes one argument which will be the name of the layout and stylesheet files. If no argument is passed then it defaults to "application".
rails g html5_layout -h
rails generate html5_layout admin
This will create:
create public/stylesheets/admin.css
create public/stylesheets/handheld.css
create public/javascripts/modernizr-1.5.min.js
create public/javascripts/jquery-1.4.2.min.js
create public/javascripts/dd_belatedpng.js
create app/views/layouts/admin.html.erb
rails g html5_layout --sass
This will add two gems, compass and compass-960-plugin, in the Gemfile. So, you need to run `bundle install`.
The generator will also add 3 layout helpers to use in the views.
* To set the title of the page, you can call `<%= title "The page title" %>`
* To add js files in the layout, use `<% javascript "foo, bar" %>`
* To add stylesheet files, use `<% stylesheet "foo, bar" %>`
This generator is heavily based upon the Ryan Bates's NiftyGenerators.
FAQs
Unknown package
We found that html5_layout 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.