{"id":13415360,"url":"https://github.com/decioferreira/bootstrap-generators","last_synced_at":"2025-05-15T20:00:38.136Z","repository":{"id":57922116,"uuid":"2527239","full_name":"decioferreira/bootstrap-generators","owner":"decioferreira","description":"Bootstrap-generators provides Twitter Bootstrap generators for Rails","archived":false,"fork":false,"pushed_at":"2024-01-12T17:42:53.000Z","size":1844,"stargazers_count":348,"open_issues_count":10,"forks_count":77,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-05-08T14:46:38.009Z","etag":null,"topics":["rails","ruby","twitter-bootstrap"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/decioferreira.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-10-06T16:56:09.000Z","updated_at":"2025-01-26T01:12:42.000Z","dependencies_parsed_at":"2024-06-18T16:51:23.890Z","dependency_job_id":"0131ed98-9362-4b89-b846-a25d3f093275","html_url":"https://github.com/decioferreira/bootstrap-generators","commit_stats":{"total_commits":181,"total_committers":15,"mean_commits":"12.066666666666666","dds":"0.34806629834254144","last_synced_commit":"c3b255d1bd4128f6338020234f5a5c48d017827b"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decioferreira%2Fbootstrap-generators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decioferreira%2Fbootstrap-generators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decioferreira%2Fbootstrap-generators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decioferreira%2Fbootstrap-generators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/decioferreira","download_url":"https://codeload.github.com/decioferreira/bootstrap-generators/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414455,"owners_count":22067262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rails","ruby","twitter-bootstrap"],"created_at":"2024-07-30T21:00:47.587Z","updated_at":"2025-05-15T20:00:37.735Z","avatar_url":"https://github.com/decioferreira.png","language":"Ruby","readme":"# Bootstrap Generators\n\n[![Build Status](https://travis-ci.org/decioferreira/bootstrap-generators.png?branch=master)](https://travis-ci.org/decioferreira/bootstrap-generators)\n\nBootstrap-generators provides [Twitter Bootstrap](http://getbootstrap.com/) generators for Rails 4 (supported Rails \u003e= 3.1). Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.\n\n## Current Twitter Bootstrap version\n\nThe current supported version of Twitter Bootstrap is 3.3.4.\n\n## Installing Gem\n\nIn your Gemfile, add this line:\n\n    gem 'bootstrap-generators', '~\u003e 3.3.4'\n\nOr you can install from latest build:\n\n    gem 'bootstrap-generators', git: 'git://github.com/decioferreira/bootstrap-generators.git'\n\nRun bundle install:\n\n    bundle install\n\n## Generators\n\nGet started:\n\n    rails generate bootstrap:install\n\nTo overwrite files that already exist, pass the `--force` (`-f`) option.\n\nOnce you've done that, any time you generate a controller or scaffold, you'll get [Bootstrap](http://twitter.github.com/bootstrap/) templates.\n\n### Give it a try\n\nIn Rails \u003e= 4.1 you need to run `spring stop` so than Rails preloader knows about new templates.\n\n    rails generate scaffold post title body:text published:boolean\n\nYou can easily customize colors, grid system, fonts, and much more by editing `bootstrap-variables.[less|scss]` on your application assets folder.\n\n## Usage\n\nTo print the options and usage run the command `rails generate bootstrap:install --help`\n\n    Usage:\n      rails generate bootstrap:install [options]\n\n    Options:\n      -e, [--template-engine=TEMPLATE_ENGINE]          # Indicates when to generate template engine\n                                                       # Default: erb\n      -se, [--stylesheet-engine=STYLESHEET_ENGINE]     # Indicates when to generate stylesheet engine\n                                                       # Default: scss\n          [--skip-turbolinks], [--no-skip-turbolinks]  # Indicates when to generate skip turbolinks\n\n    Runtime options:\n      -f, [--force]                    # Overwrite files that already exist\n      -p, [--pretend], [--no-pretend]  # Run but do not make any changes\n      -q, [--quiet], [--no-quiet]      # Suppress status output\n      -s, [--skip], [--no-skip]        # Skip files that already exist\n\n    Copy BootstrapGenerators default files\n\n### Options\n\n#### Template engines\n\nSupported template engines:\n\n* ERB\n* Haml\n* Slim\n\n##### Haml\n\nAdd the dependency on your Gemfile:\n\n    gem 'haml-rails'\n\nAnd then run:\n\n    rails generate bootstrap:install --template-engine=haml\n\n##### Slim\n\nAdd the dependency on your Gemfile:\n\n    gem 'slim-rails'\n\nAnd then run:\n\n    rails generate bootstrap:install --template-engine=slim\n\n\n#### Stylesheet engines\n\nSupported stylesheet engines:\n\n* CSS\n* SCSS\n* LESS\n\n##### SCSS\n\nMake sure you have `sass-rails` dependency on your Gemfile:\n\n    gem 'sass-rails'\n\nAnd then run:\n\n    rails generate bootstrap:install --stylesheet-engine=scss\n\nNow you can customize the look and feel of Bootstrap.\n\n##### LESS\n\nAdd the dependency on your Gemfile:\n\n    gem 'therubyracer', platforms: :ruby\n    gem 'less-rails'\n\nAnd then run:\n\n    rails generate bootstrap:install --stylesheet-engine=less\n\nNow you can customize the look and feel of Bootstrap.\n\n#### Skip turbolinks\n\nRun the generator with option `--skip-turbolinks` to remove turbolinks references from the generated layout.\n\n## Assets\n\n### Customize and extend Bootstrap\n\nIf you select LESS or SCSS as your stylesheet engine, you will get an `app/assets/stylesheets/bootstrap-variables.[less|scss]` file with all of the default variables of Bootstrap. This way you can customize the look and feel of Bootstrap without having to download any extra file.\n\n### Javascript\n\nSelect all jQuery plugins (`app/assets/javascripts/bootstrap.js`)\n\n    //= require bootstrap\n\nOr quickly add only the necessary javascript (Transitions: required for any animation; Popovers: requires Tooltips)\n\n    //= require bootstrap/collapse\n    //= require bootstrap/modal\n    //= require bootstrap/button\n    //= require bootstrap/affix\n    //= require bootstrap/tab\n    //= require bootstrap/alert\n    //= require bootstrap/transition\n    //= require bootstrap/tooltip\n    //= require bootstrap/popover\n    //= require bootstrap/scrollspy\n    //= require bootstrap/dropdown\n    //= require bootstrap/carousel\n\n\n## Customizing Templates\n\nIn Rails 3.0 and above, generators don’t just look in the source root for templates, they also search for templates in other paths. And one of them is lib/templates.\n\nSince Bootstrap Generators installs its templates under lib/templates, you can go and customize them.\n\n## Update Bootstrap Version\n\nTo update the version of Bootstrap on this Gem you can run the following command:\n\n    rake bootstrap:update\n\nThere might be some manual changes needed after running this command. But most of the process is automatic.\n\n## Credits\n\n* [Twitter Bootstrap](http://getbootstrap.com)\n","funding_links":[],"categories":["HTML"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecioferreira%2Fbootstrap-generators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdecioferreira%2Fbootstrap-generators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecioferreira%2Fbootstrap-generators/lists"}