Skip to content

samtun/html_template_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Template Generator

What is this

This is a simple generator for html templates. It uses Python3 to generate a basic index.html with css and js files. The generator also takes in a favicon. This icon is automatically resized to fit all devices and the needed meta tags are genrated in the html head section.

Dependencies

The following python modules need to be installed to run the generator:

  • Image (PIL)
  • bs4 (BeautifulSoup)

Usage

Call python3 html_template_generator.py -t <site_title>

Arguments

Argument Description Default Value Required
-t
--title
The title of the site - YES
-i
--icon
The favicon source file
use a 512x512 px file
favicon.png NO
-c
--tileColor
Color in the Windows start-menu tile
Do NOT include #
000000 NO
-j
--jquery
Set to True if you want to include jQuery False NO

Output

You will find all generated files in the output/ folder.

About

A generator for a simple html page template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published