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 + +