{"id":18640970,"url":"https://github.com/mfojtik/sinatra-twitter-bootstrap","last_synced_at":"2025-04-11T10:33:16.643Z","repository":{"id":5900013,"uuid":"7118658","full_name":"mfojtik/sinatra-twitter-bootstrap","owner":"mfojtik","description":"Twitter Bootstrap Sinatra extension with HAML helpers","archived":false,"fork":false,"pushed_at":"2015-10-22T18:49:28.000Z","size":723,"stargazers_count":23,"open_issues_count":4,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-14T19:21:55.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfojtik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-11T20:18:47.000Z","updated_at":"2021-04-12T22:33:21.000Z","dependencies_parsed_at":"2022-08-30T06:22:02.182Z","dependency_job_id":null,"html_url":"https://github.com/mfojtik/sinatra-twitter-bootstrap","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfojtik%2Fsinatra-twitter-bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfojtik%2Fsinatra-twitter-bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfojtik%2Fsinatra-twitter-bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfojtik%2Fsinatra-twitter-bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfojtik","download_url":"https://codeload.github.com/mfojtik/sinatra-twitter-bootstrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223466425,"owners_count":17149770,"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":[],"created_at":"2024-11-07T05:56:06.058Z","updated_at":"2024-11-07T05:56:06.792Z","avatar_url":"https://github.com/mfojtik.png","language":"Ruby","funding_links":[],"categories":["Boilerplate and Template"],"sub_categories":[],"readme":"Sinatra Bootstrap (css+js+helpers)\n=================\n\nWhat?\n--------\n\nA set of helpers that brings beauty of Bootstrap CSS to your Sinatra\napplications. This gem bundle all CSS and Javascript files needed for this.\n\nWhy?\n--------\n\nI want to make my small Sinatra apps looks nice with minimal effort. Currently\nI need to download all CSS and Javascript, add them to public folder and include\nthem in HAML templates. That is just too much work!\n\nHow?\n--------\n\nIs simple. Add this line to your Gemfile:\n\n    gem 'sinatra-twitter-bootstrap', :require =\u003e 'sinatra/twitter-bootstrap'\n    \nor without bundler, `gem install sinatra-twitter-bootstrap` and then: \n\n    require 'sinatra/twitter-bootstrap'\n\nThen in your Sinatra application/class you can do:\n\n    class TestApp \u003c Sinatra::Base\n      register Sinatra::Twitter::Bootstrap::Assets\n    end\n\n(TODO: make this a bit shorter)\n\nNow, surprise surprise! Your application will automatically generate routes for\nbootstrap CSS and JS files. It will also setup HTTP caching and ETags, so it\nwill not be too much overheat for your app.\n\nSince I'm old and lazy, I create small helpers you can use in your HAML views:\n\n    %html\n      %head\n        = bootstrap_assets\n      %body\n        - container :fluid do\n          - row do\n            - span3 do\n              = yield\n            - span5 :offset =\u003e 4 do\n              %p hello world\n\n\nThe full example could be found in 'examples' directory.\n\n\nLicense\n--------\n\nThis code is licensed under Apache Software License (ASLv2)\nhttp://www.apache.org/licenses/LICENSE-2.0.txt\n\nBootstrap is licenced under Apache Software License (ASL)\nhttp://www.apache.org/licenses/LICENSE-2.0.txt\n\nJQuery is licenced under MIT license.\nHTML5 Shiv is licenced under MIT/GPL2 (https://github.com/aFarkas/html5shiv)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfojtik%2Fsinatra-twitter-bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfojtik%2Fsinatra-twitter-bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfojtik%2Fsinatra-twitter-bootstrap/lists"}