{"id":16573541,"url":"https://github.com/v2e4lisp/rhtml","last_synced_at":"2026-06-08T10:01:13.912Z","repository":{"id":9706980,"uuid":"11659109","full_name":"v2e4lisp/rhtml","owner":"v2e4lisp","description":"A little DSL that let you wirte html code in ruby not just insert them into a template . ","archived":false,"fork":false,"pushed_at":"2013-08-19T03:24:18.000Z","size":220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-21T08:43:03.147Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/v2e4lisp.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":"2013-07-25T11:43:00.000Z","updated_at":"2013-08-19T03:24:20.000Z","dependencies_parsed_at":"2022-07-08T00:50:38.604Z","dependency_job_id":null,"html_url":"https://github.com/v2e4lisp/rhtml","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/v2e4lisp/rhtml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Frhtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Frhtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Frhtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Frhtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v2e4lisp","download_url":"https://codeload.github.com/v2e4lisp/rhtml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Frhtml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34057158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11T21:42:28.210Z","updated_at":"2026-06-08T10:01:13.889Z","avatar_url":"https://github.com/v2e4lisp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rhtml\n\nA DSL to write html in pure ruby.\n**write test tomorrow**\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'rhtml'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rhtml\n\n## Usage\n\n```ruby\nRhtml.html! {\n  body {\n    div(class: \"post\", id: 1) {\n      title \"first post\"\n      br\n      p \"hello world\"\n      div(class: \"comment\") {\n        (1..5).each do |id|\n          p(class: \"grey\") {\n            \"comment #{id}\"\n          }\n        end\n      }\n    }\n  }\n}\n\n```\n** converted to html **\n\n```html\n\u003chtml\u003e\n  \u003cbody\u003e\n    \u003cdiv class='post' id='1'\u003e\n      \u003ctitle\u003e\n        first post\n      \u003c/title\u003e\n      \u003cbr/\u003e\n      \u003cp\u003e\n        hello world\n      \u003c/p\u003e\n      \u003cdiv class='comment'\u003e\n        \u003cp class='grey'\u003e\n          comment 1\n        \u003c/p\u003e\n        \u003cp class='grey'\u003e\n          comment 2\n        \u003c/p\u003e\n        \u003cp class='grey'\u003e\n          comment 3\n        \u003c/p\u003e\n        \u003cp class='grey'\u003e\n          comment 4\n        \u003c/p\u003e\n        \u003cp class='grey'\u003e\n          comment 5\n        \u003c/p\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2e4lisp%2Frhtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv2e4lisp%2Frhtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2e4lisp%2Frhtml/lists"}