{"id":13508021,"url":"https://github.com/chrismccord/phoenix_haml","last_synced_at":"2025-10-03T19:03:44.188Z","repository":{"id":19324941,"uuid":"22563351","full_name":"chrismccord/phoenix_haml","owner":"chrismccord","description":"Phoenix Template Engine for Haml","archived":false,"fork":false,"pushed_at":"2019-12-18T04:19:10.000Z","size":48,"stargazers_count":158,"open_issues_count":10,"forks_count":42,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-13T09:52:51.583Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/chrismccord.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}},"created_at":"2014-08-03T01:17:27.000Z","updated_at":"2024-06-28T10:28:21.000Z","dependencies_parsed_at":"2022-09-02T00:10:30.947Z","dependency_job_id":null,"html_url":"https://github.com/chrismccord/phoenix_haml","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrismccord%2Fphoenix_haml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrismccord%2Fphoenix_haml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrismccord%2Fphoenix_haml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrismccord%2Fphoenix_haml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrismccord","download_url":"https://codeload.github.com/chrismccord/phoenix_haml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276189,"owners_count":20912288,"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-08-01T02:00:45.617Z","updated_at":"2025-10-03T19:03:44.096Z","avatar_url":"https://github.com/chrismccord.png","language":"Elixir","funding_links":[],"categories":["Framework Components"],"sub_categories":[],"readme":"# Phoenix Template Engine for Haml\n\n\u003e Powered by [Calliope](https://github.com/nurugger07/calliope)\n\n\n## Usage\n\n  1. Add `{:phoenix_haml, \"~\u003e 0.2\"}` to your deps in `mix.exs`.\n     If you generated your app from the Phoenix master branch,\n     add phoenix_haml's master branch to your deps instead.\n     `{:phoenix_haml, github: \"chrismccord/phoenix_haml\"}`\n  2. Add the following to your Phoenix `config/config.exs`\n\n     ```elixir\n    config :phoenix, :template_engines,\n      haml: PhoenixHaml.Engine\n     ```\n  3. Use the `.html.haml` extensions for your templates.\n\n## Optional\n\nAdd haml extension to Phoenix live reload in `config/dev.exs`\n\n```elixir\n  config :hello_phoenix, HelloPhoenix.Endpoint,\n    live_reload: [\n      patterns: [\n        ~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},\n        ~r{web/views/.*(ex)$},\n        ~r{web/templates/.*(eex|haml)$}\n      ]\n    ]\n```\n\n## Generators\n\n### Generate Resource\n\nGenerates a Phoenix resource similar to ```mix phoenix.gen.html``` except it generates \nhaml templates.\n\n```\nmix phoenix_haml.gen.html User users name:string age:integer\n```\n\n### Generate Layout\n\nGenerates a haml layout template, replacing the eex version.\n\n```\nmix phoenix_haml.gen.layout\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrismccord%2Fphoenix_haml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrismccord%2Fphoenix_haml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrismccord%2Fphoenix_haml/lists"}