From 5e8e1ea1f909f1f1ee1cc5529c610d4d9f9f115d Mon Sep 17 00:00:00 2001 From: Cutieguwu Date: Mon, 21 Jul 2025 13:26:31 -0400 Subject: [PATCH] Update README.md --- README.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/README.md b/README.md index 376ed55..8060bb2 100644 --- a/README.md +++ b/README.md @@ -43,3 +43,56 @@ With the actual composing file, say `index.html` looking like this: 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. + + +Setting or getting values from `` and `` depends on whether the element self-closes or not. + +For example, this will set a value to the const id of 'my_const': + + + + Value + +This will pull the value: + + + + + +A full example: + +src/title.html + + + + + <insert id="my_title" /> + + +src/index.html + + + + + My Homepage + + + + + + + + + + + + +target/index.html + + + + + + My Homepage + +