{"id":19787222,"url":"https://github.com/logandk/conditional_comment","last_synced_at":"2026-05-15T02:07:02.068Z","repository":{"id":532746,"uuid":"161841","full_name":"logandk/conditional_comment","owner":"logandk","description":"Rails helper for creating Internet Explorer conditional comments","archived":false,"fork":false,"pushed_at":"2009-04-20T08:52:50.000Z","size":80,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T03:40:29.854Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logandk.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2009-03-28T17:02:24.000Z","updated_at":"2023-03-10T23:02:58.000Z","dependencies_parsed_at":"2022-07-07T18:21:04.138Z","dependency_job_id":null,"html_url":"https://github.com/logandk/conditional_comment","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/logandk%2Fconditional_comment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logandk%2Fconditional_comment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logandk%2Fconditional_comment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logandk%2Fconditional_comment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logandk","download_url":"https://codeload.github.com/logandk/conditional_comment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241119810,"owners_count":19912962,"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-12T06:21:49.623Z","updated_at":"2026-05-15T02:07:01.996Z","avatar_url":"https://github.com/logandk.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"conditional_comment - Smart IE Conditional Comments\n=================================================\n\nThis is a Ruby on Rails plugin, which provides a clever helper for creating conditional comments for Internet Explorer.\nIf you are unsure of how conditional comments work, details can be found at [msdn](http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx).\n\n\n\nInstallation\n============\n\nAs a Rails Plugin\n-----------------\n\nUse this to install as a plugin in a Ruby on Rails app:\n\n\t$ script/plugin install git://github.com/logandk/conditional_comment.git\n\n\nAs a Rails Plugin (using git submodules)\n----------------------------------------\n\nUse this if you prefer the idea of being able to easily switch between using edge or a tagged version:\n\n\t$ git submodule add git://github.com/logandk/conditional_comment.git vendor/plugins/conditional_comment\n\n\n\nUsage\n=====\n\nAfter installation, a helper called `conditional_comment` will automatically be available to all your views. Here are some usage examples:\n\n\tconditional_comment do\n\t\tstylesheet_link_tag \"site/ie.css\"\n\tend\n\nIn this case, the stylesheet will be shown in all versions of Internet Explorer.\n\nYou can limit which versions of Internet Explorer should display the contents of the conditional comment, using the `:version` parameter. This parameter accepts a number, string or symbol using the following syntax: `[not] [less|greater than [or equal to]] [version]`. Here are some examples:\n\n\tconditional_comment :version =\u003e 7 do\n\t\tstylesheet_link_tag \"site/ie.css\" # Displayed in IE 7\n\tend\n\n\n\tconditional_comment :version =\u003e \"less than 7\" do\n\t\tstylesheet_link_tag \"site/ie.css\" # Displayed in IE 6 and below\n\tend\n\n\n\tconditional_comment :version =\u003e \"greater than or equal to 5\" do\n\t\tstylesheet_link_tag \"site/ie.css\" # Displayed in IE 5 and above\n\tend\n\n\n\tconditional_comment :version =\u003e \"not 6\" do\n\t\tstylesheet_link_tag \"site/ie.css\" # Displayed in everything besides IE 6\n\tend\n\n\n\tconditional_comment :version =\u003e :less_than_6 do\n\t\tstylesheet_link_tag \"site/ie.css\" # Displayed in IE 5 and below\n\tend\n\n\nCredits\n=======\nCopyright (c) 2009 Logan Raarup, released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogandk%2Fconditional_comment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogandk%2Fconditional_comment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogandk%2Fconditional_comment/lists"}