How to make a whole editable website with Hype

Was weekend shopping. Now I revisited the code and here is a example that works with a lookup map. I think this is better and allows you to map CSS-Classes for Text and Images to JSON-Keys. Also this way the image replacement works on a much lower core level without ever loading the original image. Also it doesn’t require an initScene function.

BTW one could also just embed the JSON (via PHP) into the Hype-HTML-Page and the the preoading (loading scene) would not be necessary.

This is perfectly fine and could only be improved through inverting the lookup map (initCMS) to also be generated automatically through special CMS-Classes keys that start like HypeCMS-KEYNAME … maybe in a (Version3).

HypeCMS_example2.zip

2 Likes