htmz
htmz copied to clipboard
Is a no JS website possible with this if put thought some preprocessor (Speculation)
If I understand the snippet correctly, this search and replaces the doc and replace specific sections with a specially formatted iframe.
If that's the case, then in theory it could be possible to add a script to this htmz for static website generators to add some dynamic capabilities to their site (but without having to add JS code to it).
Application for this technique could be for torsites that should really not have javascript enabled.
You still want to keep the snippet as it makes things easier without having to integrate a preprocessor. But basically this would be an extra optional script in this repo that developers can optionally call. It would read a html input and scan for a htmlz snippet (to indicate it is being used) and then do the search and replace of required tags with an iframe) before outputting to stdio