Trying my hand at creating a simple framework for building dynamic websites w/out the complexity of a large framework like react, vue, angular, etc.
Important
This should be simple, more like an HTMX-style framework not a React, Angular, or Vue framework. Also, not a jQuery-style library.
- Look up proper citation formats for references
- Read up on creating JavaScript modules, or modern ways of organizing JS code--it has been a while
- Look into testing frameworks for JavaScript
- [-]
- Initial research on modern JavaScript modules
- Make a first pass at executing an "init" function once that page is loaded--does nothing.
Currently, calling it jeuje because the word kind of encapsulates the purpose of the framework--it is used to "jeuje" up web pages--and I also just like the word.
The YouTube video on bone broth (linked at the end of the document) shows how I've always heard it pronounced--if you need that. There's also a little New York Times blurb, also in the References, on spellings and origin of the word I found interesting. I kinda purposefully used the less common spelling (according to the article) because that's kinda how I imagined it was spelled, and, +1, it had "j"s in it. :)
Looking at any of the examples, you can see that all it really takes is to download the jeuje.js file, reference it in your js code (<script type="module" src="js/main-or-whatever.js"></script>), and use it in your module.
No need to build it or anything. I don't think anything like that will be needed, but we'll see.
Tip
You may come across a CORS error if just loading your HTML file locally outside a server. Because of security precautions in browsers these days, you'll probably want to fire up your favorite (or whatever is easist) webserver. Initially, I just used the npm http-server since I already had it installed.
http-server -o --cors was the command I used.
- "Binging with Babish: Bone Broth from The Mandalorian" - Babish Culinary Universe, "YouTube.com", 5 years ago
- "‘Jeuje,’ ‘Zhoosh,’ ‘Zhuzh’: A Word of Many Spellings, and Meanings" - Hayley Phelan, "New York Times", Jan. 31, 2022