{"id":26510113,"url":"https://github.com/timcraft/markababy","last_synced_at":"2025-03-21T01:40:12.008Z","repository":{"id":56882806,"uuid":"2554689","full_name":"timcraft/markababy","owner":"timcraft","description":"Ruby gem for generating HTML","archived":false,"fork":false,"pushed_at":"2024-01-11T14:55:49.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T23:15:36.722Z","etag":null,"topics":["html","markaby","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timcraft.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":"2011-10-11T11:08:48.000Z","updated_at":"2023-01-16T10:56:41.000Z","dependencies_parsed_at":"2023-02-10T02:45:26.690Z","dependency_job_id":null,"html_url":"https://github.com/timcraft/markababy","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timcraft%2Fmarkababy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timcraft%2Fmarkababy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timcraft%2Fmarkababy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timcraft%2Fmarkababy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timcraft","download_url":"https://codeload.github.com/timcraft/markababy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244722656,"owners_count":20499151,"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":["html","markaby","ruby"],"created_at":"2025-03-21T01:40:11.255Z","updated_at":"2025-03-21T01:40:12.001Z","avatar_url":"https://github.com/timcraft.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markababy\n\n[![Gem Version](https://badge.fury.io/rb/markababy.svg)](https://badge.fury.io/rb/markababy) [![Test Status](https://github.com/timcraft/markababy/actions/workflows/test.yml/badge.svg)](https://github.com/timcraft/markababy/actions/workflows/test.yml)\n\n\nRuby gem for generating HTML.\n\n\n## Installation\n\n    $ gem install markababy\n\n\n## Example\n\nUsage is similar to [Markaby](http://en.wikipedia.org/wiki/Markaby),\nand easy to use directly from a Ruby script:\n\n```ruby\nrequire 'markababy'\n\nMarkababy.markup do\n  html do\n    head { title 'Boats.com' }\n    body do\n      h1 'Boats.com has great deals'\n      ul do\n        li '$49 for a canoe'\n        li '$39 for a raft'\n        li '$29 for a huge boot that floats and can fit 5 people'\n      end\n    end\n  end\nend\n```\n\nUse `Markababy.capture` if you want to capture\nthe output as a string instead of printing it to STDOUT.\n\n\n## Rails template usage\n\nAdd markababy as a dependency to your Gemfile; do the bundle dance; then change\nthe extension on your template files from .erb to .rb and you can start writing\nyour templates in Ruby!\n\nController instance variables and helpers will be available as methods.\n\n\n## Less is more\n\nSome differences from Markaby:\n\n* No auto-stringification\n* No element classes or IDs\n* No validation\n* No XHTML\n\n\n## Alternatives\n\n* https://github.com/timcraft/hom\n* https://github.com/judofyr/tubby\n* https://github.com/digital-fabric/rubyoshka\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimcraft%2Fmarkababy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimcraft%2Fmarkababy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimcraft%2Fmarkababy/lists"}