0.0
No commit activity in last 3 years
No release in over 3 years
Gem for randomizing div classes and color styles for static sites.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

Web Randomizer

Features

  • Randomize classes for div tags for all files in specified folders
  • Set random class value for div tags without class
  • Replace style classes for css files in specified folders according to randomized div classes values
  • Randomize css colors in specified folders

Installation

Add this line to your Gemfile:

gem 'web_randomizer'

Then run bundle install or install it manually:

gem install web_randomizer

Settings

If you want to specify your own parsing folders, you can add them to randomize.yml file located at the root of your project

Settings example:

# randomize.yml 
html_dir: ["_includes", "_layouts"]
css_dir: ["assets/css","_sass"]

Usage

Usage example:

require 'web_randomizer'
WebRandomizer.execute

License

MIT License.