Skip to main content

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

Project description

HTML Generator

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

Установка

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

pip install htmlgenim

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

from htmlgenim.generator import HTML

# Создаем экземпляр 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.2.tar.gz (2.9 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.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: htmlgenim-0.3.2.tar.gz
  • Upload date:
  • Size: 2.9 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.2.tar.gz
Algorithm Hash digest
SHA256 171fe960b8fe3407bed34cb2f3deccbf7a430872d5741df0442e458a938456e6
MD5 258dc7d65523603b966817bd9d866dfb
BLAKE2b-256 fd25f872deec21cab5ecc347869bee818650e79ea1320111f1fac3613bbabb55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: htmlgenim-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 947c558011e8ce7e63c9b1e2f753bd996336bcad2e480d26026594da10f85706
MD5 6d9e096a66f159a4f5cd56c4a2ccfd05
BLAKE2b-256 479ea4eb90fd6e6f759809b6babfe0802ec8590a929896a3fced275a454603ba

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