# Balloon
Reuse chunks of HTML in other HTML files via preprocessing.
Reuse the chunk in `global_nav.html` via ``.
Balloon will inflate the chunk in place of the `` tag in the source file, dumping a released target file which can be pushed to the web server.
--
I do plan to migrate this project to rust once I'm finished tinkering around with the concept. I am considering adding the ability to add includes which wrap other includes.
This could be useful for templates, so that the base html template could look like this:
{Inserted Var}
{Inserted Nav Chunk}
{Inserted Page Chunk}
With the actual composing file, say `index.html` looking like this:
Home | MySite.tld
Welcome
lorem ipsum...
Perhaps I could do this with a custom `` tag with maybe an `id` parameter. How you would declare a variable, I'm not sure. At the very least, I'll likely have to make a proper parser to make this happen. The script is kinda hacky as it is.
The idea being that `` in effect pulls in stuff from another file, and `` places in within something. Perhaps think of it as sewing; you stitch both sides together by pushing the pin through, and pulling it back.