Skip to main content

Генератор HTML-страниц

Project description

HTML Generator

Библиотека для генерации HTML-страниц. Поддерживает добавление заголовков, CSS- и JS-файлов, а также секций контента.

Установка

Установите библиотеку через pip:

pip install htmlgenim

Использование

from htmlgenim.generator import HTMLGenerator

# Создаем экземпляр HTML
page = HTML()

# Устанавливаем заголовок
page.set_title("Моя страница")

# Добавляем CSS-файлы
page.css_link_add("styles.css")

# Добавляем JS-файлы
page.js_link_add("script.js")

# Добавляем секции контента
page.section_add("<h1>Привет, мир!</h1>")
page.section_add("<p>Это пример использования HTML генератора.</p>")

# Сохраняем HTML в файл
page.save_to_file("output.html")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

htmlgenim-0.3.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

htmlgenim-0.3.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file htmlgenim-0.3.0.tar.gz.

File metadata

  • Download URL: htmlgenim-0.3.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for htmlgenim-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d60cda8f7e92767ce2d74af57301bd3ab73c1e1d6bac0aeb0ff1e48f43de0033
MD5 532f651bd149c29a4bbd79becd199e9d
BLAKE2b-256 3cc9da58e524acaaa4096389c102f52e92e1cf05e382d35c40c6e67155e0be56

See more details on using hashes here.

File details

Details for the file htmlgenim-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: htmlgenim-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for htmlgenim-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50fbd3803ae96dbdccb4f0dce5d369ad497e29aa195a61048d37594025a4b2f3
MD5 e20c2225741f96acbef506c4be3fbb60
BLAKE2b-256 701253ac65e5123fc6b5dec7703cf7a4fea30e7861d7eff2313d63dc4feeaee8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page