{"id":15679647,"url":"https://github.com/markbates/yamler","last_synced_at":"2025-05-07T10:21:05.233Z","repository":{"id":485412,"uuid":"111354","full_name":"markbates/yamler","owner":"markbates","description":"Tools for using YAML w/ Ruby easier.","archived":false,"fork":false,"pushed_at":"2016-05-24T18:44:15.000Z","size":104,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T09:02:18.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.mackframework.com","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/markbates.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-01-20T22:11:23.000Z","updated_at":"2019-12-27T14:30:48.000Z","dependencies_parsed_at":"2022-07-04T19:30:54.641Z","dependency_job_id":null,"html_url":"https://github.com/markbates/yamler","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/markbates%2Fyamler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbates%2Fyamler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbates%2Fyamler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbates%2Fyamler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markbates","download_url":"https://codeload.github.com/markbates/yamler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252856834,"owners_count":21814905,"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-03T16:34:20.336Z","updated_at":"2025-05-07T10:21:05.212Z","avatar_url":"https://github.com/markbates.png","language":"Ruby","readme":"Yamler - Making YAML easy and fun to use with Ruby\n=========================================================================\n\nUsing YAML in Ruby is pretty easy, but I find myself doing several things\nevery time I use YAML. First is I always seem to pass it through ERB. The\nother is that I want to pass it a binding, because I want to give it\naccess to some variables or methods. Finally I sometimes end up merging\nseveral YAML files into one file, because other wise it would be too big\nand unwieldy to manage. Enter Yamler:\n\n=== Examples:\n  # Renders said file through ERB, and then through YAML.load:\n  Yamler.load('/path/to/file.yml')\n\n  # Does the same as above but makes a method called say_hi\n  # available to the binding of the Yamler::Template instance.\n  Yamler.load('/path/to/file.yml') do\n    def say_hi\n      'hi'\n    end\n  end\n  \n  # Renders said file through ERB, and then through YAML.load:\n  Yamler.load('/path/to/file.yml', {:locals =\u003e {:username =\u003e 'markbates'}, :foo =\u003e :bar})\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkbates%2Fyamler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkbates%2Fyamler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkbates%2Fyamler/lists"}