{"id":25003790,"url":"https://github.com/lpogic/rebus","last_synced_at":"2026-02-15T13:32:03.087Z","repository":{"id":228611934,"uuid":"774491663","full_name":"lpogic/rebus","owner":"lpogic","description":"ruby stencil compiler","archived":false,"fork":false,"pushed_at":"2024-11-12T00:36:31.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T02:59:50.181Z","etag":null,"topics":["ruby","template-compiler"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lpogic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-19T16:35:07.000Z","updated_at":"2024-11-12T00:36:35.000Z","dependencies_parsed_at":"2025-02-04T22:39:10.228Z","dependency_job_id":"5beff6b9-8c89-4eb1-bd1c-9a8261bccf0b","html_url":"https://github.com/lpogic/rebus","commit_stats":null,"previous_names":["lpogic/rebus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lpogic/rebus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Frebus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Frebus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Frebus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Frebus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpogic","download_url":"https://codeload.github.com/lpogic/rebus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Frebus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29479573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ruby","template-compiler"],"created_at":"2025-02-04T22:39:03.009Z","updated_at":"2026-02-15T13:32:03.058Z","avatar_url":"https://github.com/lpogic.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"rebus - Ruby stencil compiler\n===\n\nRebus template language compiler based on Ruby dynamic evaluation.\nMinimalistic and customizable.\n\n\nFor example this document was rendered from [readme.md.rbs](https://github.com/lpogic/rebus/blob/main/doc/draft/readme.md.rbs) template.\n\nInstallation\n---\n```\ngem install rebus\n```\n\nBasics\n---\n\nRules are:\n- input is interpreted line by line\n- there are 3 different line types recognized by the following prefixes:\n  - `# `  - a comment line skipped during compilation\n  - `$ `  - a code line evaluated during compilation\n  - any other - a string line with possible interpolated code (see Ruby string interpolation rules)\n\n#### Sample (stealed and translated from [ERB documentation](https://ruby-doc.org/stdlib-3.1.0/libdoc/erb/rdoc/ERB.html#class-ERB-label-Ruby+in+HTML)):\n\n\nTemplate(Rebus - HTML):\n```HTML\n\u003chtml\u003e\n  \u003chead\u003e\u003ctitle\u003eRuby Toys -- #@name\u003c/title\u003e\u003c/head\u003e\n  \u003cbody\u003e\n\n    \u003ch1\u003e#@name (#@code)\u003c/h1\u003e\n    \u003cp\u003e#@desc\u003c/p\u003e\n\n    \u003cul\u003e\n      $ @features.each do |f|\n      \u003cli\u003e\u003cb\u003e#{f}\u003c/b\u003e\u003c/li\u003e\n      $ end\n    \u003c/ul\u003e\n\n    \u003cp\u003e\n      $ if @cost \u003c 10\n      \u003cb\u003eOnly #@cost!!!\u003c/b\u003e\n      $ else\n      Call for a price, today!\n      $ end\n    \u003c/p\u003e\n\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nSource code(Ruby):\n```RUBY\nrequire 'rebus'\nrequire 'modeling' # to keep sample code concise\n\nclass Product\n  model :code, :name, :desc, :cost do\n    @features = [ ]\n  end\n\n  def add_feature( feature )\n    @features \u003c\u003c feature\n  end\nend\n\ntoy = Product.new( \"TZ-1002\",\n  \"Rubysapien\",\n  \"Geek's Best Friend!  Responds to Ruby commands...\",\n  999.95 )\ntoy.add_feature(\"Listens for verbal commands in the Ruby language!\")\ntoy.add_feature(\"Ignores Perl, Java, and all C variants.\")\ntoy.add_feature(\"Karate-Chop Action!!!\")\ntoy.add_feature(\"Matz signature on left leg.\")\ntoy.add_feature(\"Gem studded eyes... Rubies, of course!\")\n\nputs Rebus.compile_file \"a0.rbs\", toy\n```\n\nOutput(HTML):\n```HTML\n\u003chtml\u003e\n  \u003chead\u003e\u003ctitle\u003eRuby Toys -- Rubysapien\u003c/title\u003e\u003c/head\u003e\n  \u003cbody\u003e\n\n    \u003ch1\u003eRubysapien (TZ-1002)\u003c/h1\u003e\n    \u003cp\u003eGeek's Best Friend!  Responds to Ruby commands...\u003c/p\u003e\n\n    \u003cul\u003e\n        \u003cli\u003e\u003cb\u003eListens for verbal commands in the Ruby language!\u003c/b\u003e\u003c/li\u003e\n        \u003cli\u003e\u003cb\u003eIgnores Perl, Java, and all C variants.\u003c/b\u003e\u003c/li\u003e\n        \u003cli\u003e\u003cb\u003eKarate-Chop Action!!!\u003c/b\u003e\u003c/li\u003e\n        \u003cli\u003e\u003cb\u003eMatz signature on left leg.\u003c/b\u003e\u003c/li\u003e\n        \u003cli\u003e\u003cb\u003eGem studded eyes... Rubies, of course!\u003c/b\u003e\u003c/li\u003e\n    \u003c/ul\u003e\n\n    \u003cp\u003e\n         Call for a price, today!\n    \u003c/p\u003e\n\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nUsage\n---\n[Wiki](https://github.com/lpogic/rebus/blob/main/doc/wiki/README.md)\n\nAuthors\n---\n- Łukasz Pomietło (oficjalnyadreslukasza@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpogic%2Frebus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpogic%2Frebus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpogic%2Frebus/lists"}