StaticWire

screenshot of StaticWire

ProcessWire Module to covert pages to static HTML via CLI or admin interface.

Overview

The StaticWireProcessWire module is a powerful tool designed to convert dynamic pages into static HTML files. It streams seamlessly with the ProcessWire content management system, providing a straightforward way to generate static sites either through the Command Line Interface (CLI) or directly from the admin interface. This module is particularly beneficial for developers looking to utilize ProcessWire as a static site generator in their Continuous Integration/Continuous Deployment (CI/CD) workflows, making website management more efficient and reliable.

With the StaticWire module, users can easily control the output of their website’s pages while enjoying the speed benefits of static sites. Whether you’re streamlining your development process or enhancing site performance, this module provides a practical solution.

Features

  • Easy Installation: Install directly via the ProcessWire modules directory, following simple setup instructions to get started quickly.

  • Customizable Static File Path: Configure where your static HTML files will be generated with an adjustable path relative to your installation's root directory.

  • Dual Usage: Generate static content via the CLI or through the admin interface, offering flexibility based on your preferences or requirements.

  • Mirrored Folder Structure: The output mirrors your website's page tree structure, making it intuitive to navigate through generated content.

  • Permission Controlled: Ensures secure usage by requiring users to have the staticwire-generate permission, which protects access to generating static files.

  • Asset Management Guidance: While the module does not copy assets like CSS or JavaScript, it provides multiple options to handle them effectively, such as copying folders or creating symlinks.

  • Future Enhancements Planned: The roadmap includes potential support for paginated templates and the option to download the static site as a zipped archive, promising further improvements.

  • Alternatives Mentioned: For those seeking more advanced caching solutions, the ProCache module by Ryan Cramer is suggested as an alternative, underscoring the versatility of options within the ProcessWire ecosystem.