{"id":16918927,"url":"https://github.com/rkh/sinatra-compass","last_synced_at":"2025-09-29T05:31:46.052Z","repository":{"id":810931,"uuid":"518475","full_name":"rkh/sinatra-compass","owner":"rkh","description":"Better Compass integration for Sinatra (extracted from BigBand).","archived":false,"fork":false,"pushed_at":"2013-03-29T16:33:21.000Z","size":540,"stargazers_count":17,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-14T12:03:04.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"ncsa","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rkh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-02-15T09:38:31.000Z","updated_at":"2021-01-13T19:28:10.000Z","dependencies_parsed_at":"2022-08-16T11:00:18.622Z","dependency_job_id":null,"html_url":"https://github.com/rkh/sinatra-compass","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/rkh%2Fsinatra-compass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkh%2Fsinatra-compass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkh%2Fsinatra-compass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkh%2Fsinatra-compass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rkh","download_url":"https://codeload.github.com/rkh/sinatra-compass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234594180,"owners_count":18857419,"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-10-13T19:42:24.659Z","updated_at":"2025-09-29T05:31:40.790Z","avatar_url":"https://github.com/rkh.png","language":"Ruby","funding_links":[],"categories":["Stylesheets"],"sub_categories":[],"readme":"Sinatra::Compass\n================\n\nIntegrates the Compass stylesheet framework with [Sinatra](http://sinatrarb.com).\n\nBigBand\n-------\n\nSinatra::Compass is part of the [BigBand](http://github.com/rkh/big_band) stack.\nCheck it out if you are looking for other fancy Sinatra extensions.\n\n\nInstallation\n------------\n\n    gem install sinatra-compass\n\nUsage\n-----\n\nUsage without doing something:\n\n    require \"sinatra\"\n    require \"sinatra/compass\"\n\nIf you create a directory called views/stylesheets and place your\nsass files in there, there you go. Just call stylesheet(name) form\nyour view to get the correct stylesheet tag. The URL for your\nstylesheets will be /stylesheets/:name.css.\n\nOf course you can use any other setup. Say, you want to store your\nstylesheets in views/css and want the URL to be /css/:name.css:\n\n    get_compass(\"css\")\n\nBut what about more complex setups?\n\n    require \"sinatra/base\"\n    require \"sinatra/compass\"\n\n    class Foo \u003c Sinatra::Base\n      register Sinatra::Compass\n      set :compass, :sass_dir =\u003e \"/foo/bar/blah\"\n      get_compass(\"/foo/:name.css\") do\n        compass :one_stylesheet\n      end\n    end\n\nNote that already generated routes will be deactivated by calling\nget_compass again.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkh%2Fsinatra-compass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frkh%2Fsinatra-compass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkh%2Fsinatra-compass/lists"}