/unlike-assets

Racket's module resolver for non-Racket assets :godmode:

Primary LanguageRacketMIT LicenseMIT

License: MIT

Imagine if Racket allowed this:

(dynamic-rerequire "/path/to/script.js")
(dynamic-require "/path/to/script.js" 'minified)

Unlike Assets (UA) helps you write module resolvers for data outside of Racket. You can treat CSS, SVG, JavaScript, and other resources as if they were software modules. In that sense, UA abstracts over creative frameworks so that you can create your own alternatives to Polyglot, Scribble, Frog, Universe, Pollen, etc.