New! Enhanced arguments and native tag notation added. Learn more .
Thank you for supporting us!
Simply create a file with your preferred name and the extension .htmw
Then write HTML/PHP code normally and whenever you need HTMW tools you can just use the directive tags like <@template ...> to enhance your Web development.
e.g. in the file example index.htmw we created a really simple widget that outputs <h1>hello world!</h1> with a custom message in a paragraph; this is just a quick and minimal example
Then run the following command
e.g. if you have index.htmw and want to compile to PHP run
Architectures like React are great for highly dynamic apps, but they always ship extra overhead to the browser, especially for pages that don't need it but still need a simpler system without unnecessary performance impact. Our ≈300 KB compiler pre-processeses widgets into clean, 100% stand-alone static code, resulting in smaller files, faster load times, no runtime dependencies and no additional processing. It is also easy to embed in PHP pages