{"id":14974202,"url":"https://github.com/kangaroux/hamplify","last_synced_at":"2026-02-06T14:18:29.347Z","repository":{"id":57436648,"uuid":"81901020","full_name":"Kangaroux/hamplify","owner":"Kangaroux","description":"HAML-ish template compiler written in Python","archived":false,"fork":false,"pushed_at":"2017-10-23T19:18:34.000Z","size":78,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T01:35:56.338Z","etag":null,"topics":["converter","django","flask","haml","haml-ish","html","jinja2","parser","python","template"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Kangaroux.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":"2017-02-14T03:34:02.000Z","updated_at":"2018-04-04T03:49:54.000Z","dependencies_parsed_at":"2022-09-10T01:51:44.427Z","dependency_job_id":null,"html_url":"https://github.com/Kangaroux/hamplify","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kangaroux%2Fhamplify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kangaroux%2Fhamplify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kangaroux%2Fhamplify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kangaroux%2Fhamplify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kangaroux","download_url":"https://codeload.github.com/Kangaroux/hamplify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241870676,"owners_count":20034334,"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":["converter","django","flask","haml","haml-ish","html","jinja2","parser","python","template"],"created_at":"2024-09-24T13:50:09.110Z","updated_at":"2026-02-06T14:18:29.309Z","avatar_url":"https://github.com/Kangaroux.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/Kangaroux/hamplify.svg?branch=master)](https://travis-ci.org/Kangaroux/hamplify)\n[![Coverage Status](https://coveralls.io/repos/github/Kangaroux/hamplify/badge.svg?branch=master)](https://coveralls.io/github/Kangaroux/hamplify?branch=master)\n[![PyPI version](https://badge.fury.io/py/hamplify.svg)](https://badge.fury.io/py/hamplify)\n\n# hamplify\n`hamplify` is a lightweight [HAML-ish](http://haml.info/) compiler written in Python.\n\nHere are some reasons to use `hamplify`:\n\n- Compatible with Python 2.7 and 3.3+\n- Requires **NO** dependencies and is framework agnostic\n- Support for Django and Jinja2 templates\n- Templates are automatically minified\n- Integrates seamlessly into existing projects\n\n## Using hamplify\n\nInstall `hamplify` with pip:\n```\npip install hamplify\n```\n\nUse the `hamplify` command to compile your templates:\n```\nhamplify \u003cinput-dir\u003e \u003coutput-dir\u003e [--watch]\n```\n\n## Running Tests\nInstall the test dependencies \n```\npip install -r reqs/test.txt\n```\n\nRun the tests \n```\npytest --cov=hamplify\n```\n\n## Syntax Sample\n```HAML\n!!!\n%html\n  %head\n    %title\n      - block title\n        My Site\n\n    %link(rel=\"stylesheet\" href=\"style.css\")\n\n    :css\n      p {\n        background-color: #CCC;\n      }\n\n  %body\n    -# This is an HTML comment\n    / This is another comment, \n      but it won't be rendered\n\n    .container\n      %p A paragraph with some text.\n      %button.btn#my-button A button\n\n      %a(href='#')= the_link|some_filter\n\n      :plain\n        This is a plaintext block. The compiler will not parse anything in here.\n\n    :javascript\n      console.log(\"Hello, world!\");\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkangaroux%2Fhamplify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkangaroux%2Fhamplify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkangaroux%2Fhamplify/lists"}