Skip to content

T-Royale/PageTransmuter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PageTransmuter

PageTransmuter is a command-line tool that transforms HTML files into valid C/C++ macros, allowing them to be embedded directly into small HTTP servers without requiring a filesystem.

Especially useful for embedded systems (Arduino, ESP32...) and minimal servers.

Why PageTransmuter?

When building small HTTP servers in C or C++, it is common to end up manually escaping HTML strings before sending them to the client.
This approach is error-prone, hard to maintain, and does not scale well.

PageTransmuter solves this problem by:

  • Converting HTML files into C/C++ macros
  • Escaping all problematic characters automatically
  • Generating output that can be directly included in source code
  • Optionally embedding HTTP response headers into the macro

This makes embedded or low-level web projects cleaner, more maintainable, and easier to update.

Basic usage

pagetransmuter -f file.html                 # Output to stdout
pagetransmuter -f file.html -o file.h       # Output to file

Installation

git clone https://github.com/T-Royale/PageTransmuter.git
cd PageTransmuter
make install        # Install system-wide

License

This project is licensed under GNU GPLv3.

The output generated by this program is not covered by this license and may be used under any terms.

Status

Version: BETA 2.0

About

CLI tool to transform HTML files into valid C/C++ macros

Resources

License

Stars

Watchers

Forks

Contributors