{"id":17069776,"url":"https://github.com/jlong/radius","last_synced_at":"2025-05-15T22:11:54.428Z","repository":{"id":451833,"uuid":"75126","full_name":"jlong/radius","owner":"jlong","description":"A small, but powerful tag-based template language for Ruby modeled after the ones used in MovableType and TextPattern. It has tags similar to XML, but can be used to generate any form of plain text (HTML, e-mail, etc...).","archived":false,"fork":false,"pushed_at":"2025-03-05T23:03:30.000Z","size":362,"stargazers_count":102,"open_issues_count":3,"forks_count":21,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-08T13:04:33.083Z","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/jlong.png","metadata":{"files":{"readme":"README.rdoc","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","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":"2008-11-13T00:06:11.000Z","updated_at":"2025-03-05T23:03:34.000Z","dependencies_parsed_at":"2024-12-30T09:11:58.295Z","dependency_job_id":"0aee5420-6404-45b0-b924-5afd0cd600c6","html_url":"https://github.com/jlong/radius","commit_stats":{"total_commits":208,"total_committers":17,"mean_commits":"12.235294117647058","dds":0.6971153846153846,"last_synced_commit":"a027e8f07e7447bcd6e255137ec5ca11f837d064"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlong%2Fradius","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlong%2Fradius/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlong%2Fradius/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlong%2Fradius/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlong","download_url":"https://codeload.github.com/jlong/radius/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254430331,"owners_count":22069909,"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-14T11:27:49.660Z","updated_at":"2025-05-15T22:11:50.134Z","avatar_url":"https://github.com/jlong.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Radius -- Powerful Tag-Based Templates\n\n{rdoc-image:https://github.com/jlong/radius/workflows/CI/badge.svg}[https://github.com/jlong/radius/actions] {rdoc-image:https://codeclimate.com/github/jlong/radius.png}[https://codeclimate.com/github/jlong/radius] {rdoc-image:https://coveralls.io/repos/jlong/radius/badge.png}[https://coveralls.io/r/jlong/radius]\n\n\nRadius is a powerful tag-based template language for Ruby inspired by the\ntemplate languages used in MovableType[http://www.movabletype.org] and\nTextPattern[http://www.textpattern.com]. It uses tags similar to XML, but can\nbe used to generate any form of plain text (HTML, e-mail, etc...).\n\n== Usage\n\nWith Radius, it is extremely easy to create custom tags and parse them. Here's a small\nexample:\n\n  require 'radius'\n\n  # Define tags on a context that will be available to a template:\n  context = Radius::Context.new do |c|\n    c.define_tag 'hello' do\n      'Hello world'\n    end\n    c.define_tag 'repeat' do |tag|\n      number = (tag.attr['times'] || '1').to_i\n      result = ''\n      number.times { result \u003c\u003c tag.expand }\n      result\n    end\n  end\n\n  # Create a parser to parse tags that begin with 'r:'\n  parser = Radius::Parser.new(context, :tag_prefix =\u003e 'r')\n\n  # Parse tags and output the result\n  puts parser.parse(%{A small example:\\n\u003cr:repeat times=\"3\"\u003e* \u003cr:hello /\u003e!\\n\u003c/r:repeat\u003e})\n\nOutput:\n\n  A small example:\n  * Hello world!\n  * Hello world!\n  * Hello world!\n\n\n== Quick Start\n\nRead the QUICKSTART file to get up and running with Radius.\n\n\n== Requirements\n\nRadius does not have any external requirements for using the library in your\nown programs.\n\nRagel is required to create the ruby parser from the Ragel specification,\nand both Ragel and Graphviz are required to draw the state graph for the\nparser.\n\n\n== Installation\n\nIt is recommended that you install Radius using the RubyGems packaging system:\n\n  % gem install --remote radius\n\n\n== License\n\nRadius is released under the MIT license and is copyright (c) 2006-2025\nJohn W. Long. A copy of the MIT license can be found in the LICENSE file.\n\n\n== Roadmap\n\nThis is a prioritized roadmap for future releases:\n\n1. Clean up the current code base. [Done]\n\n2. Add support for multi-level contexts: tags should be able to be\n   defined to only be valid within other sets of tags. [Done]\n\n3. Create a simple DSL for defining contexts. [Done]\n\n4. Optimize for speed, modify scan.rl to emit C.\n\n\n== Development\n\nThe latest version of Radius can be found on RubyForge:\n\nhttp://github.com/jlong/radius\n\nIf you are interested in helping with the development of Radius, feel free to\nfork the project on GitHub and send me a pull request.\n\n\nJohn Long ::\nhttp://wiseheartdesign.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlong%2Fradius","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlong%2Fradius","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlong%2Fradius/lists"}