{"id":26664396,"url":"https://github.com/bracketing/bracket","last_synced_at":"2025-03-25T16:28:07.954Z","repository":{"id":57416236,"uuid":"320303333","full_name":"bracketing/bracket","owner":"bracketing","description":"⚒ Bracket is an Elegant static site generator (in preview)","archived":false,"fork":false,"pushed_at":"2020-12-30T12:28:03.000Z","size":118,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T01:38:21.943Z","etag":null,"topics":["bracket","flask","jinja2","python","static-site-generator"],"latest_commit_sha":null,"homepage":"https://bracket.ink","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/bracketing.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":"2020-12-10T14:52:25.000Z","updated_at":"2023-08-12T09:55:33.000Z","dependencies_parsed_at":"2022-08-23T16:51:23.649Z","dependency_job_id":null,"html_url":"https://github.com/bracketing/bracket","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bracketing%2Fbracket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bracketing%2Fbracket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bracketing%2Fbracket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bracketing%2Fbracket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bracketing","download_url":"https://codeload.github.com/bracketing/bracket/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245383109,"owners_count":20606258,"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":["bracket","flask","jinja2","python","static-site-generator"],"created_at":"2025-03-25T16:28:07.256Z","updated_at":"2025-03-25T16:28:07.944Z","avatar_url":"https://github.com/bracketing.png","language":"Python","readme":"# Bracket\n\n**Bracket** is an Elegant static site generator. It encapsulates **[Jinja2](https://github.com/pallets/jinja)**. Its biggest highlight is to render the static pages in the form of **view function**, and support real-time **debugging**. It can also support **CSS framework**, **international routing** and more functions through ecological extension.\n\n\u003e *The project is being updated continuously, and the official version has not been completed yet*\n\n\n## Installing\n\nInstall and update using [pip](pypi.org):\n\n``` bash\n$ pip install bracket\n```\n\n## A Simple Example\n\n``` python\nfrom bracket import WebSite\nfrom jinja2 import Template\n\napp = WebSite(__name__)\n\n@app.pages(\"/\")\ndef helloworld(context):\n    return context({\n    \"title\":\"Welcome to Bracket\",\n    \"content\":Template('''\n        \u003ch1\u003e{{ messages }}\u003c/h1\u003e\n        \u003cimg src=\"{{ bracket.res('/logo.png')}}\"\u003e\n    '''),\n    \"resources\":{\n        \"messages\":\"Welcome to Bracket\"\n    }\n})\n\napp.dispatch(\"/\")\n```\n``` html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"zh-CN\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n    \u003cmeta name=\"generator\" content=\"Bracket \u0026 Jinja2 \"\u003e\n    \n    \u003ctitle\u003eWelcome to Bracket\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cdiv id=\"bracketapp\"\u003e\n    \n        \u003ch1\u003eWelcome to Bracket\u003c/h1\u003e\n        \u003cimg src=\"/static/logo.png\"\u003e\n        \n    \u003c/div\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Contributing\n\nHow to contribute to this project, report problems, and build a development environment, please refer to the [contribution guide]()\n\n## Links\n\n* Website: https://bracket.ink\n* Documentation: https://github.com/bracketing/bracket/blob/main/docs/get.md\n* Releases: https://pypi.org/project/bracket/\n* Code: https://github.com/bracketing/bracket\n* Issue tracker: https://github.com/bracketing/bracket/issues\n\n## License\n\nThe project is open source under MIT license in [GitHub Community](https://github.com). No one is allowed to infringe the copyright. Please follow `LICENSE`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbracketing%2Fbracket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbracketing%2Fbracket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbracketing%2Fbracket/lists"}