GithubHelp home page GithubHelp logo

joefiorini / naked_rack Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 88 KB

Rack middleware to help you get naked for CSS Naked Day!

Home Page: http://naked.dustindiaz.com/

License: MIT License

Ruby 100.00%

naked_rack's Introduction

naked_rack

CSS Naked Day is fast approaching. Is your site ready? By installing the naked_rack middleware, your site will show its true colors on April 9th, 2009. For those who dare, use the :remove_js => true option to prove your strength.

CSS Naked Day? wtf?

CSS Naked Day is a day for web designers and developers to show off how hard they’ve worked to keep their site’s semantically marked up and styled solely through CSS. Any well designed site should be usable even after losing its styles. CSS Naked Day is a day to prove that theory.

For more information on CSS Naked Day please see http://naked.dustindiaz.com/.

Options

naked_rack supports the following options:

:display_banner => [true]|false – This will replace all stylesheet tags with an HTML comment advertising CSS Naked Day (not to mention giving itself some love)

:remove_js => true|[false] – Also take out any script tags. Prove your unobtrusiveness with this option.

:permanent => true|[false] – Ignores the date and puts the site in permanent naked mode. This is really meant to be used during testing, but make sure you turn it off!

Installation

To install the library:

sudo gem install faithfulgeek-naked_rack

Rails (in config/environment.rb):

config.middleware.use "NakedRack"[, options]

Sinatra:

use NakedRack[, options]

Rackup Script:

use NakedRack[, options]

Support

Please let me know if you run into any problems using naked_rack. This is my first time writing Rack middleware and as such I would appreciate any input. You can reach me on twitter as @joefiorini, email joe at faithfulgeek dot org or message me here on GitHub.

Thanks for using naked_rack! I wish everyone a safe and happy CSS Naked Day.

Developed by:

@joefiorini (irc: faithfulgeek)

Copyright

Copyright © 2009 faithfulgeek. See LICENSE for details.

naked_rack's People

Stargazers

Angus H. avatar Matthew Good avatar Matt Yoho avatar Mutalis avatar Peter Lambert avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.