{"id":15611929,"url":"https://github.com/tarellel/semantic_ui_views_generator","last_synced_at":"2026-05-08T03:41:36.182Z","repository":{"id":56894825,"uuid":"185463623","full_name":"tarellel/semantic_ui_views_generator","owner":"tarellel","description":"A Rails generator for creating Semantic-Ui styled views (Erb, Slim, and HAML).","archived":false,"fork":false,"pushed_at":"2020-01-12T19:11:48.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T12:23:01.066Z","etag":null,"topics":["generator","rails","ruby","semantic-ui"],"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/tarellel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-07T19:14:05.000Z","updated_at":"2020-01-12T19:11:50.000Z","dependencies_parsed_at":"2022-08-21T01:20:40.306Z","dependency_job_id":null,"html_url":"https://github.com/tarellel/semantic_ui_views_generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarellel%2Fsemantic_ui_views_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarellel%2Fsemantic_ui_views_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarellel%2Fsemantic_ui_views_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarellel%2Fsemantic_ui_views_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarellel","download_url":"https://codeload.github.com/tarellel/semantic_ui_views_generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246200322,"owners_count":20739566,"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":["generator","rails","ruby","semantic-ui"],"created_at":"2024-10-03T06:21:04.684Z","updated_at":"2025-10-26T13:06:05.534Z","avatar_url":"https://github.com/tarellel.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Semantic-UI Views Generator\n\n![](https://ruby-gem-downloads-badge.herokuapp.com/semantic_ui_views_generator?type=total)  [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT) [![Gem Version](https://badge.fury.io/rb/semantic_ui_views_generator.svg)](https://badge.fury.io/rb/semantic_ui_views_generator)\n\nThis gem is used for generating semantic based scaffold views for your Rails application. They can be Erb, Slim, or HAML. You can include pagination (using Pagy), simple_form (for the form components), and if you'd like you can utilize the meta-tags gems to all dynamic page titles when switching between your view components.\n\nThis is more or less a sister project of the [bootstrap_views_generator](https://github.com/tarellel/bootstrap_views_generator) gem, but for those who prefer to use Semantic UI.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'semantic_ui_views_generator', group: :development\n\n# Before continuing make sure you have the semantic-ui-sass gem installed and included in your application.scss file\ngem 'semantic-ui-sass', github: 'doabit/semantic-ui-sass'\n\n# application.scss\n@import 'semantic-ui';\n\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install semantic_ui_views_generator\n\n## Usage\n\n```shell\nUsage:\n  rails g semantic:install [options]\n\nOptions:\nOptions:\n-t, [--template-engine=TEMPLATE_ENGINE]     # Indicates when to generate using a designated template engine (erb, slim, haml)\n                                            # Default: erb\n--simpleform                                # Indicates if simple_form is to be used to generate the forms\n                                            # Default: false\n--pagination                                # Specify if you want to add pagination to the index pages\n                                            # Defaults: false (requires Pagy to use pagination)\n--metatags                                  # If you want the pages titles to use the meta-tags gem function for the page title\n                                            # Default: false\n--layout                                    # Over-write your application layout file with a Semantic UI based layout\n                                            # Default: false\n--devise                                    # If you want to generate semantic based devise views\n                                            # Default: false\n--skip_javascript                           # If you want to skip adding javascript_include_tag || javascript_pack_tag to the layouts\n                                            # Default: false\n--skip_turbolinks                           # Do you want to skip associating turbolinks with the assets and views\n                                            # Default: false\n```\n\n## Options\n\n##### Template Engines\n\nSupported Template Engines\n\n* ERB\n* HAML\n* Slim\n\n**HAML**\n\nMake sure you have haml added to your your Gemfile\n```ruby\ngem 'haml-rails'\n\n# generate haml views\nrails g semantic:install --template_engine=haml\n```\n\n**Slim**\nMake sure you have Slim added to your Gemfile\n```ruby\ngem 'slim-rails'\n\n# generate Slim views\nrails g semantic:install --template_engine=slim\n```\n\n#### Pagination\n\nEnsure you have [Pagy](https://github.com/ddnexus/pagy) gem installed\n```ruby\ngem 'pagy'\n\n# Make sure you have the semantic-ui pagy helper included\n# config/initializers/pagy.rb\nrequire 'pagy/extras/semantic'\n```\n\n\n#### Meta-Tags\nEnsure you have the [meta-tags](https://github.com/kpumuk/meta-tags) gem installed\n```ruby\ngem 'meta-tags'\n```\n\n### Examples\n\nGenerate semantic views with pagination enabled\n```shell\nrails g semantic:install --pagination\n```\n\nGenerate semantic views with slim and using simple_form\n```shell\nrails g semantic:install --template_engine=slim --simpleform\n```\n\nGenerate semantic scaffolds, devise views, while using simpleform, metatags, and slim template engine.\n```shell\n rails g semantic:install --devise --simpleform --metatags --template_engine=slim\n```\n\n### Extras\n\n* If you like to use the [meta-tags](https://github.com/kpumuk/meta-tags) gem to add page titles based on the views.\n* Pagination defaults to using [Pagy](https://github.com/ddnexus/pagy) on the index pages.\n* With [simple_form](https://github.com/plataformatec/simple_form) it generates a `config/initializers/simple_form.rb` file for your simple_form formatting.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarellel%2Fsemantic_ui_views_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarellel%2Fsemantic_ui_views_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarellel%2Fsemantic_ui_views_generator/lists"}