Bundle asset files instead of encoding to base64 strings#103
Closed
videah wants to merge 1 commit intofreecomputinglab:mainfrom
Closed
Bundle asset files instead of encoding to base64 strings#103videah wants to merge 1 commit intofreecomputinglab:mainfrom
videah wants to merge 1 commit intofreecomputinglab:mainfrom
Conversation
- Extracts inline base64 images to external asset files in HTML output - Adds #asset-path() function and #image show rule for HTML assets - Follows #include/#import for image discovery with alt text forwarding - Injects #asset-path() into included files via per-file preamble - Supports dynamic paths in #asset-path() and #image show rule - Copies config assets preserving relative paths from content root Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ac8d03b to
228aad8
Compare
Contributor
|
Closing according to the reasoning in #100. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've been really enjoying my time using rheo but I really need #100 to be fixed to use it for more serious projects, so I used Claude to help take a stab at it (I hope that's ok, if you think this is just slop feel free to close)
It looks for uses of
#imageand substitutes it for its ownhtml.elemlinking to the image in theassetsfolder, which it will get copied to at build time.This also adds an
#asset-pathfor linking to non-image files and returns the path to it, I can't really think of a better name for this so feel free to tweak it. I had considered hooking it up to#linklike the relative linking system, but I wasn't sure if that was maybe too much.