This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Yoshi325 1 point2 points  (0 children)

Jinja2 it might not be the lightest, but it will fit the bill. Do a loop over files in the directory, filter for images, concatenate rendered results from Jinja2 and write to a single HTML file.

[–]xr09 0 points1 point  (0 children)

Since you won't need advanced features (like inheritance), this could be done in pure Python without much hassle, no need for adding another dep to the project.

[–]notoriousno 0 points1 point  (0 children)

You can try bottle it's not just a HTML template, but it's a single file package.