BlueprintCSS Rails Generator

This plugin is no longer available. Blueprint nowadays ships with a very good ‘compress’ script that allows you to generate all kinds of nice BluePrint layouts. Having a plugin to just copy some files seems a bit excessive.

I think that, if you’re a web developer, you’ve seen the BlueprintCSS framework. BlueprintCSS offers quite a bit of CSS code that allows you to quickly and easily build a grid-based layout, using pure CSS.

That’s, of course, all very nice, but you should be able to plug it in into your Rails app. And now you can!

Install my plugin:

./script/plugin install http://svn.ariejan.net/plugins/blueprint

And then generate as many BlueprintCSS layouts as you’d like. To create a layout for your posts controller, simply run the following command:

./script/generate blueprint posts

This will create a posts.rhtml template in app/views/layouts, and add the proper CSS and images to your application. That’s all!

Note 1: You may remove a few lines of inline CSS from your layout to remove the supporting background images.

Note 2: Bugs and feature requests go into Trac.

  • Twitter
  • Digg
  • del.icio.us
  • DZone
  • Reddit
  • email

8 Responses to “BlueprintCSS Rails Generator”

  1. meekish says:

    This may be the catalyst I needed to give Blueprint a whirl. Keep it up!

  2. [...] came Blueprint-CSS. A great concept, and wonderful implementation. And with the new BlueprintCSS Generator plugin for Rails from Ariejan.net, how can I resist using it. I’m rolling it out in my [...]

  3. [...] quente! Nunca faça algo tão horrendo quanto o que eu fiz no Rails Rumble, este plugin gera automagicamente um layout baseado no BlueprintCSS, fica fácil de customizar, e bem menos feio [...]

  4. [...] BlueprintCSS Rails Generator (tags: css rails blueprint plugin generator rubyonrails layout) [...]

  5. Kris says:

    Your svn is down… has been for a little while. Hope to see it back up.

  6. Denis Haskin says:

    Is this dead? Maybe host it on github instead?

  7. blueprint css comes with a lot of ruby files useful for generating new layouts. Now with the new rails application templates (rails >= 2.3) I think it would be a good idea to continue blueprint css as a plugin. We’d be able to download the plugin and run the generators after a new application has been setup all with a single command.

Leave a Reply