[![PyPI](https://img.shields.io/pypi/v/miko-tpl)](https://pypi.org/project/miko-tpl/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/miko-tpl) ![PyPI - Downloads](https://img.shields.io/pypi/dm/miko-tpl) ![PyPI - License](https://img.shields.io/pypi/l/miko-tpl) [![Documentation Status](https://readthedocs.org/projects/miko/badge/?version=latest)](https://miko.readthedocs.io/en/latest/?badge=latest) [![Discord](https://img.shields.io/discord/777430548951728149?label=chat&logo=discord)](https://discord.gg/kfMwZUyGFG)
# miko
miko is a pythonic template engine that is little, lightweight and fast.
**Features:**
* Full python syntax. So there is absolutely nothing to remember in the syntax.
* It runs in Python.
* Little, lightweight and fast. (No dependency)
* Inheriting layouts through template inheritance.
* Easy to use!
## Installation
You can install it using pip.
`$ pip install miko-tpl`
## Examples
### Title
```html
<title>^^ title ^^</title>
```
### Members
```html
<body>
<h1>^^ team.name ^^ members</h1>
<ul>
^^
"".join(
f'<li><a href="{ member.url }">{ member.name }</a></li>'
for member in team.members
)
^^
</ul>
</body>
```
### Extend
```python
^^
manager.render(
"blog_page_layout.html", title="My sixteenth birthday.",
content="""
<strong>Today is my birthday!</strong><br>
So give me a gift.
"""
)
# or self.extends(...)
^^
```
## Documentation
You can view the UserGuide and API reference of miko [here](https://miko.readthedocs.io/en/latest).
## Contributing
You can contribute on the development of miko in the GitHub repository.
If you send a pull request, please keep the following in mind.
The source code is written in such a way that it is 45% compliant with PEP8.
I would like you to keep the overall style of the source code as unchanged as possible.
## License
miko is available under the MIT license.
Detail: [LICENSE](https://github.com/tasuren/miko/blob/main/LICENSE)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共15个文件
py:7个
txt:3个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:miko-tpl-1.3.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
miko-tpl-1.3.0.tar.gz (15个子文件)
miko-tpl-1.3.0
PKG-INFO 3KB
LICENSE 1KB
miko
builtins.py 2KB
template.py 14KB
manager.py 5KB
parser.py 1KB
utils.py 814B
__init__.py 236B
setup.cfg 38B
setup.py 1KB
miko_tpl.egg-info
PKG-INFO 3KB
SOURCES.txt 250B
top_level.txt 5B
dependency_links.txt 1B
README.md 2KB
共 15 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功