{"id":17252183,"url":"https://github.com/eagletmt/haml_parser","last_synced_at":"2025-04-14T05:32:21.380Z","repository":{"id":56875730,"uuid":"42348720","full_name":"eagletmt/haml_parser","owner":"eagletmt","description":"Parser of Haml template language","archived":false,"fork":false,"pushed_at":"2016-07-02T04:50:50.000Z","size":59,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T16:29:52.910Z","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/eagletmt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-09-12T07:25:08.000Z","updated_at":"2017-03-03T08:35:23.000Z","dependencies_parsed_at":"2022-08-20T10:10:05.230Z","dependency_job_id":null,"html_url":"https://github.com/eagletmt/haml_parser","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/eagletmt%2Fhaml_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagletmt%2Fhaml_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagletmt%2Fhaml_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagletmt%2Fhaml_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eagletmt","download_url":"https://codeload.github.com/eagletmt/haml_parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248826816,"owners_count":21167757,"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-15T06:53:15.595Z","updated_at":"2025-04-14T05:32:20.999Z","avatar_url":"https://github.com/eagletmt.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HamlParser\n[![Gem Version](https://badge.fury.io/rb/haml_parser.svg)](http://badge.fury.io/rb/haml_parser)\n[![Build Status](https://travis-ci.org/eagletmt/haml_parser.svg?branch=master)](https://travis-ci.org/eagletmt/haml_parser)\n[![Coverage Status](https://coveralls.io/repos/eagletmt/haml_parser/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/eagletmt/haml_parser?branch=master)\n[![Code Climate](https://codeclimate.com/github/eagletmt/haml_parser/badges/gpa.svg)](https://codeclimate.com/github/eagletmt/haml_parser)\n\nWelcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/haml_parser`. To experiment with that code, run `bin/console` for an interactive prompt.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'haml_parser'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install haml_parser\n\n## Usage\n\n```ruby\nparser = HamlParser::Parser.new(filename: 'input.haml')\nast = parser.call(File.read('input.haml'))\n```\n\nSimple CLI interface is also available.\n\n```\n% cat input.haml\n%p hello world\n% haml_parser input.haml\n#\u003cstruct HamlParser::Ast::Root\n children=\n  [#\u003cstruct HamlParser::Ast::Element\n    children=[],\n    tag_name=\"p\",\n    static_class=\"\",\n    static_id=\"\",\n    old_attributes=nil,\n    new_attributes=nil,\n    oneline_child=\n     #\u003cstruct HamlParser::Ast::Text\n      text=\"hello world\",\n      escape_html=true,\n      filename=\"input.haml\",\n      lineno=1\u003e,\n    self_closing=false,\n    nuke_inner_whitespace=false,\n    nuke_outer_whitespace=false,\n    object_ref=nil,\n    filename=\"input.haml\",\n    lineno=1\u003e]\u003e\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/eagletmt/haml_parser.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagletmt%2Fhaml_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feagletmt%2Fhaml_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagletmt%2Fhaml_parser/lists"}