I'm trying to find a way to build a static page with tested code that doesn't use React or templating.
Just HTML, CSS and some easy wiring to the tested code.

I am struggling!

The context is that I'm trying to build a canvas game
js-examples/module-examples/basic-modules at main · mdn/js-examples

Code examples that accompany the MDN JavaScript/ECMAScript documentation - mdn/js-examples

GitHub

@caseyleask
Can you define what you mean by "templating"?

If you can't use *any* technology which renders HTML from data, then aren't you limited to creating pages by hand?

@negative12dollarbill I'm not rendering much HTML, besides <canvas>. And I'm happy to create it by hand.
@caseyleask
Then maybe I don't understand the question? Canvas will just be an element in your HTML. Do you mean you need to know how to send events from outside your canvas code into canvas? Like a button outside which would start or stop a game?
@negative12dollarbill nope, I already have that working. It's just not tested.
Was looking for
* A way to build a static page
* Testable code
* No need for html generation like React or other render HTML business
Found the answer here: https://aus.social/@caseyleask/112580035678032079
Casey (@[email protected])

MDN coming in clutch https://github.com/mdn/js-examples/tree/main/module-examples/basic-modules

Aus.Social
@caseyleask What do you mean by "testable code"?

@negative12dollarbill at the most basic level, `expect(method_under_test(args)).toEqual(expected);`

If everything is in-line on the page, you can't really do that.