{"id":18234625,"url":"https://github.com/Nilkee/prettier-plugin-html-erb","last_synced_at":"2025-09-30T07:31:36.832Z","repository":{"id":261123888,"uuid":"882287240","full_name":"ForAzens/prettier-plugin-html-erb","owner":"ForAzens","description":"Prettier plugin for formatting .html.erb files.","archived":false,"fork":false,"pushed_at":"2024-11-07T19:56:38.000Z","size":78,"stargazers_count":27,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T16:04:22.863Z","etag":null,"topics":["erb","html","plugin","prettier","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ForAzens.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-02T12:16:03.000Z","updated_at":"2025-01-13T01:20:24.000Z","dependencies_parsed_at":"2024-11-04T20:40:11.515Z","dependency_job_id":"0f3df59d-30ed-4074-8d3e-9504df532f42","html_url":"https://github.com/ForAzens/prettier-plugin-html-erb","commit_stats":null,"previous_names":["forazens/prettier-plugin-html-erb"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForAzens%2Fprettier-plugin-html-erb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForAzens%2Fprettier-plugin-html-erb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForAzens%2Fprettier-plugin-html-erb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForAzens%2Fprettier-plugin-html-erb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ForAzens","download_url":"https://codeload.github.com/ForAzens/prettier-plugin-html-erb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234663114,"owners_count":18868100,"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":["erb","html","plugin","prettier","rails","ruby"],"created_at":"2024-11-04T23:04:26.106Z","updated_at":"2025-09-30T07:31:36.822Z","avatar_url":"https://github.com/ForAzens.png","language":"JavaScript","readme":"# @4az/prettier-plugin-html-erb\nA prettier plugin for html erb template files that works with prettier v3.\n\n## PLEASE READ\nThis library probably won't be developed any further because I no longer work with Ruby on Rails and thus, the ERB templating system. Feel free to make PRs, fork or whatever you want with this library.\n\n# Install\n## Node\n```bash\nnpm install --save-dev prettier @4az/prettier-plugin-html-erb @prettier/plugin-ruby\n```\n```bash\nyarn add -D prettier @4az/prettier-plugin-html-erb @prettier/plugin-ruby\n```\n```bash\npnpm install --save-dev prettier @4az/prettier-plugin-html-erb @prettier/plugin-ruby\n```\n\n## Ruby\nIf you want to install the dependencies globally:\n```bash\ngem install bundler prettier_print syntax_tree\n```\n\nOr if you are using bundler:\n```bash\nbundler add prettier_print syntax_tree --group=\"development\"\n```\n\nIf you're having problems, check the repository of [@prettier/plugin-ruby](https://github.com/prettier/plugin-ruby?tab=readme-ov-file#getting-started).\n\n# Use\nAdd the plugins to your `.prettierrc`:\n```json\n{\n    \"plugins\": [\"@prettier/plugin-ruby\", \"@4az/prettier-plugin-html-erb\"]\n}\n```\n\nIf any file doesn't format, check the output running prettier in the terminal:\n```bash\nnpx prettier ./src/myfile.html.rb\n```\n\n# Configuration\nThis plugin doesn't have any special config. You can configure the ruby formatting using the options of [@prettier/plugin-ruby](https://github.com/prettier/plugin-ruby?tab=readme-ov-file#configuration).\n\n# Roadmap\nThere are a number of features I want to support:\n- [x] Support erb delimiters. Ex: `\u003c%- delimiters -%\u003e`.\n- [-] Port library to TypeSript.\n- [-] Add a way to ignore sections of code of being formatted.\n- [-] Support more ways to format blocks.\n\n# Testing\nTo run tests:\n```\ngit clone https://github.com/ForAzens/prettier-plugin-html-erb.git\ncd prettier-plugin-html-erb\nnpm install\ngem install bundler prettier_print syntax_tree\nnpm run test\n```\n\n# Special thanks\n[@davidodenwald](https://github.com/davidodenwald) for his plugin [prettier-plugin-jinja-template](https://github.com/davidodenwald/prettier-plugin-jinja-template) which served as a base for this plugin.\n\n# License\n[MIT](https://github.com/ForAzens/prettier-plugin-html-erb/blob/main/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNilkee%2Fprettier-plugin-html-erb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNilkee%2Fprettier-plugin-html-erb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNilkee%2Fprettier-plugin-html-erb/lists"}