{"id":21343149,"url":"https://github.com/rancorm/hip-flask","last_synced_at":"2026-05-20T06:05:56.336Z","repository":{"id":217962532,"uuid":"744377471","full_name":"rancorm/hip-flask","owner":"rancorm","description":"Lightweight Flask extension to simplify the integration of CSS and JavaScript files into your applications","archived":false,"fork":false,"pushed_at":"2024-11-19T17:19:24.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T15:45:51.367Z","etag":null,"topics":["flask","html","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rancorm.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-01-17T07:10:18.000Z","updated_at":"2024-11-19T17:19:28.000Z","dependencies_parsed_at":"2024-01-24T05:23:07.747Z","dependency_job_id":"c4f4862f-3f02-4bf6-b7b1-e8a9dbd2db25","html_url":"https://github.com/rancorm/hip-flask","commit_stats":null,"previous_names":["rancorm/hip-flask"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rancorm%2Fhip-flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rancorm%2Fhip-flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rancorm%2Fhip-flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rancorm%2Fhip-flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rancorm","download_url":"https://codeload.github.com/rancorm/hip-flask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243818199,"owners_count":20352629,"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":["flask","html","python"],"created_at":"2024-11-22T01:12:13.702Z","updated_at":"2026-05-20T06:05:56.293Z","avatar_url":"https://github.com/rancorm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hip-flask\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/rancorm/hip-flask/main/flask.svg\" width=\"200\" height=\"200\" alt=\"Hip flask\" /\u003e\n\u003c/p\u003e\n\nLightweight Flask extension to simplify the integration of CSS and JavaScript files\ninto your applications.\n\n## Start here \n\nInstall the extension:\n\n```sh\npip install hip-flask\n```\n\nConsidering the minimal flask application factory below in `hipapp.py` as an example:\n\n```python\nfrom flask import Flask\nfrom hip_flask import HipExtension\n\ndef create_app():\n    app = Flask(__name__)\n\n    hip = HipExtension(app)\n\n    # Meta tags\n    hip.meta(charset=hip.Meta.CHARSET)\n    hip.meta(name=\"description\", content=\"Timeline event tracker\")\n    hip.meta(name=\"keywords\", content=[\"HTML\", \"CSS\", \"JavaScript\"])\n    \n    # Stylesheets\n    hip.static_link(\"css/hipapp.css\")\n\n    # Scripts\n    hip.static_script(\"js/hipapp.js\")\n\n    @app.route('/hello')\n    def hello():\n        return 'Hello, World!'\n\n    return app\n```\n\nIn the template use macros `hip_links`, `hip_scripts`, or `hip_metas` to retrieve link,\nscript, and meta tags respectively for use in the template.\n\n### Stylesheets\n\n```python\n{% block stylesheets %}\n{% for css in macros.hip_links() %}{{ css.as_tag() }}{% endfor %}\n{% endblock %}\n```\n\n### Meta tags\n\n```python\n{% block metas %}\n{% for meta in macros.hip_metas() %}{{ meta.as_tag() }}{% endfor %}\n{% endblock %}\n```\n\n## Contributing\n\nYou know the drill. Fork and get to work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Francorm%2Fhip-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Francorm%2Fhip-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Francorm%2Fhip-flask/lists"}