{"id":16918923,"url":"https://github.com/rkh/haml-more","last_synced_at":"2025-09-29T22:31:02.426Z","repository":{"id":815297,"uuid":"525177","full_name":"rkh/haml-more","owner":"rkh","description":"Adds more functionality to Haml and Sass (part of BigBand).","archived":false,"fork":false,"pushed_at":"2010-07-19T14:38:49.000Z","size":104,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-14T09:22:29.724Z","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-18T22:53:25.000Z","updated_at":"2021-01-13T19:28:11.000Z","dependencies_parsed_at":"2022-08-16T11:00:31.613Z","dependency_job_id":null,"html_url":"https://github.com/rkh/haml-more","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%2Fhaml-more","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkh%2Fhaml-more/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkh%2Fhaml-more/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkh%2Fhaml-more/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rkh","download_url":"https://codeload.github.com/rkh/haml-more/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234669985,"owners_count":18869115,"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:21.991Z","updated_at":"2025-09-29T22:30:57.153Z","avatar_url":"https://github.com/rkh.png","language":"Ruby","funding_links":[],"categories":["Stylesheets"],"sub_categories":[],"readme":"Haml::More and Sass::More\n=========================\n\nAdds more functionality to Haml and Sass. Haml helpers detect if called from another context, so they are usable with Erb and friends.\n\nBigBand\n-------\n\nHaml::More and Sass::More are part of the [BigBand](http://github.com/rkh/big_band) stack.\nCheck it out if you are looking for fancy Sinatra extensions.\n\nHaml extensions\n---------------\n\n* `content_for` and `yield_content` (like in Rails, you know?)\n\n        // some_file.haml\n        = yield_content(:foo)\n        .content\n          = haml :another_file\n        \n        // another_file.haml\n        - content_for(:foo)\n          %b bar\n        .something\n          %h1 cool, huh?\n\n* adds `:coffee_script` for inline [CoffeeScript](http://jashkenas.github.com/coffee-script/)\n\n        %head\n          %title CoffeScript example\n          :coffee_script\n            if happy and knows_it\n              claps_hands()\n              cha_cha_cha()\n        %body\n          content\n\nSassScript extensions\n---------------------\n\n* `min` and `max`\n\n        .someClass\n          width = max(100px, !someSize * 3)\n          height = min(!a, !b, 20%)\n\nUsage with Sinatra\n------------------\n\nClassic style:\n\n    require \"sinatra\"\n    require \"haml/more\"\n\nModular:\n\n    require \"sinatra/base\"\n    require \"haml/more\"\n    \n    class Foo \u003c Sinatra::Base\n      helpers Haml::More\n    end\n\n\nUsage without Sinatra\n---------------------\n\nUsing just Sass::More (if you're in Merb or Rails):\n\n    # in some initializer or something\n    require \"sass/more\"\n\nWithout anything:\n\n    require \"haml/more\"\n    scope = Object.new\n    scope.extend Haml::More\n    puts Haml::Engine.new(\"%p some haml code\").render(scope)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkh%2Fhaml-more","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frkh%2Fhaml-more","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkh%2Fhaml-more/lists"}