<center>
<img src="./assets/banner.svg" width="300">
##### Bambus Template Engine
</center>
## Usage
To get started, follow the example below to render a template:
```python
import tambus
t = tambus.TambusEngine()
# Rendering HTML
with open("/templates/index.html") as f:
print(t.translate(f.read(), hello="world!"))
```
Imagine the content of `/templates/index.html` is as follows:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Page</title>
</head>
<body>
<h1> Hello {hello} </h1>
</body>
</html>
```
The output would be:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Page</title>
</head>
<body>
<h1> Hello world! </h1>
</body>
</html>
```
## Contribution Guidelines
Contributions to Tambus are welcome! If you have any bug fixes, improvements, or new features to add, please submit a pull request. Make sure to follow the coding style and include tests for any new functionality.
## License
Tambus is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more information.
Raw data
{
"_id": null,
"home_page": "https://github.com/somespi/tambus",
"name": "tambus",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Someone.",
"author_email": "someonegithub@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/3c/28/3ea2122240be5076688def464fa09c2cdf8876e68b549aa79a25aac13d3f/tambus-1.0.0.tar.gz",
"platform": null,
"description": "<center>\r\n\r\n<img src=\"./assets/banner.svg\" width=\"300\">\r\n\r\n\r\n##### Bambus Template Engine \r\n</center>\r\n\r\n\r\n## Usage\r\n\r\nTo get started, follow the example below to render a template:\r\n\r\n```python\r\nimport tambus\r\n\r\nt = tambus.TambusEngine()\r\n\r\n# Rendering HTML\r\nwith open(\"/templates/index.html\") as f:\r\n print(t.translate(f.read(), hello=\"world!\"))\r\n```\r\n\r\nImagine the content of `/templates/index.html` is as follows:\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n <title>My Page</title>\r\n</head>\r\n<body>\r\n <h1> Hello {hello} </h1>\r\n</body>\r\n</html>\r\n```\r\n\r\nThe output would be:\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n <title>My Page</title>\r\n</head>\r\n<body>\r\n <h1> Hello world! </h1>\r\n</body>\r\n</html>\r\n```\r\n\r\n\r\n## Contribution Guidelines\r\nContributions to Tambus are welcome! If you have any bug fixes, improvements, or new features to add, please submit a pull request. Make sure to follow the coding style and include tests for any new functionality.\r\n \r\n## License\r\nTambus is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more information.\r\n \r\n",
"bugtrack_url": null,
"license": "",
"summary": "Bambus Template Engine",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/somespi/tambus"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a086010a4d421d605f999f31a919519781cfbfa71e8de36351fa9e0052be8ac6",
"md5": "584b015aeda89dd2af1fc19bf2590dde",
"sha256": "76ad32a87d6093ffc2d54c44719a45741401e783b18016bd5678ac3adf0d0c88"
},
"downloads": -1,
"filename": "tambus-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "584b015aeda89dd2af1fc19bf2590dde",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4543,
"upload_time": "2023-07-30T19:53:54",
"upload_time_iso_8601": "2023-07-30T19:53:54.406741Z",
"url": "https://files.pythonhosted.org/packages/a0/86/010a4d421d605f999f31a919519781cfbfa71e8de36351fa9e0052be8ac6/tambus-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3c283ea2122240be5076688def464fa09c2cdf8876e68b549aa79a25aac13d3f",
"md5": "49c5d4f414d2553b1b4802023672746a",
"sha256": "f2137b6624281e5883bda87b0f6339e1704a61b096d2da4469e1f94c07c58828"
},
"downloads": -1,
"filename": "tambus-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "49c5d4f414d2553b1b4802023672746a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3822,
"upload_time": "2023-07-30T19:53:56",
"upload_time_iso_8601": "2023-07-30T19:53:56.127897Z",
"url": "https://files.pythonhosted.org/packages/3c/28/3ea2122240be5076688def464fa09c2cdf8876e68b549aa79a25aac13d3f/tambus-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-30 19:53:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "somespi",
"github_project": "tambus",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "tambus"
}