All tags » python

1-7 / 29 articles

Thumbnail for Replaying CSS Builds: A Recipe-Based Manager for Pelican Themes

A deep dive into a Python tool that combines, purges, minifies, and redeploys CSS bundles for Pelican themes using a recipe-based pipeline. Learn how it records every build step, automatically replays the entire chain, and drops the result into the output folder – no full site rebuild required.... Read More


Keywords: pelican css build tools web performance purgecss csso automation deterministic workflows static site python
Thumbnail for Jinja2 to PDF: Modern HTML-to-PDF Generation with WeasyPrint

A production-grade walkthrough for generating PDFs from Jinja2 templates using WeasyPrint. This article covers template design, CSS print styling, page layout control, and integration into automated document pipelines — replacing deprecated wkhtmltopdf workflows with a modern, reproducible...... Read More


Keywords: jinja2 weasyprint pdf generation python html to pdf wkhtmltopdf alternative document automation css print templating reproducible documents
Thumbnail for From Plain Text to HTML in Vim – Using Python Filters for Instant Markup

Learn how to extend the RunScriptFilter pattern to turn plain text into HTML instantly inside Vim. Convert lists into styled

  • tags, wrap paragraphs in

    , generate