معرفی شرکت ها


dewar-1.2.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Static Site Generator, like flask
ویژگی مقدار
سیستم عامل -
نام فایل dewar-1.2.1
نام dewar
نسخه کتابخانه 1.2.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده tfpk
ایمیل نویسنده tomkunc0@gmail.com
آدرس صفحه اصلی https://github.com/tfpk/dewar
آدرس اینترنتی https://pypi.org/project/dewar/
مجوز Apache 2.0
# Dewar Dewar is a static site generator inspired by flask. ## About ### Why the name "dewar"? Dewar (pronounced d-you-ah) is another name for a vacuum flask, or a thermos. Basically, it's a flask that keeps things frozen (or hot). ### Why would I use this? To the moment, there have been a few ways of making a static site: - Roll your own custom solution, maybe using jinja, but maybe just formatting a html template solution. This might work for a small site, or for a repetitive report; but maintainability is lost, and a lot of custom configuration has to be done. - Use a static site generator (a la jekyll or hyde). These are great for making blogs, but are opinionated about what content they should host. They don't allow for computation inline, and they are their own ecosystem to learn. ### Just use flask! There are two major limitations to flask that this project solves: 1) Flask only serves one page at a time. 2) Flask requires a server to be running. These limitaions are obvious, but they prevent a few use cases: - hosting a site that doesn't need to be continuously rendered - creating sites that can be easily downloaded - creating a server that can be seen without a server running - creating sites that rely entirely on client-side code, but want some convenient templating [in this case, it adds overhead of processing that's unnecessary] ## Setup Installing Dewar is as simple as: ``` pip install dewar ``` And writing a program like ```python3 # named 'site.py' import dewar site = dewar.Site() @site.register('index.html') def index(): return "<h1>Hello, World</h1>" if __name__ == "__main__": site.render() ``` Then, ``` $ python3 site.py ``` That's it! Your static site is now in `dist/`.


نیازمندی

مقدار نام
- markdown
- proxy-tools
- jinja2
- sphinx
- sphinx


زبان مورد نیاز

مقدار نام
>=3.6.0 Python


نحوه نصب


نصب پکیج whl dewar-1.2.1:

    pip install dewar-1.2.1.whl


نصب پکیج tar.gz dewar-1.2.1:

    pip install dewar-1.2.1.tar.gz