createmeal-0.1.0
توضیحات
A library to render HTML
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | createmeal-0.1.0 |
| نام | createmeal |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Julio Cezar da Silva |
| ایمیل نویسنده | jcezardasilva@outlook.com |
| آدرس صفحه اصلی | https://github.com/createmeal/createmeal-py |
| آدرس اینترنتی | https://pypi.org/project/createmeal/ |
| مجوز | - |
# createmeal-py
A HTML library renderer.
## Get Started
Instalation
pip install createmeal-py
## Basic Usage
The main metod of createmeal is toHtml({}), so:
print(createmeal.toHtml({div:{}}))
output:
<div></div>
Take a Hello world example:
helloWorld = {
html:{
head: {},
body: {
div: [
{
h3: ["Hello World!"]
},
{
p: ["This is a simple way to generate DOM without write HTML."]
}
]
}
}
}
print(createmeal.toHtml(helloWorld));
output:
<html>
<head>
</head>
<body>
<div>
<h3>Hello World!</h3>
<p>This is a simple way to generate DOM without write HTML.</p>
</div>
</body>
</html>
## Build
Make sure you have the latest version of PyPA’s build installed:
python3 -m pip install --upgrade build
Now run this command from the same directory where pyproject.toml is located:
python3 -m build
## Documentation
You can find the createmeal documentation [on the website](https://createmeal.org/).
## License
Createmeal is [MIT licensed](./LICENSE).
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl createmeal-0.1.0:
pip install createmeal-0.1.0.whl
نصب پکیج tar.gz createmeal-0.1.0:
pip install createmeal-0.1.0.tar.gz