Version: 0.07
Yet the potential or use cases of this library may be unknown as you can literally write plain HTML and save it as a file.
Example 1:
Output:
Hello, World!
Example 2:
Output:
This is a red text in a paragraph
Example using HTMX:
www.b4x.com
GitHub: https://github.com/pyhoon/MiniHtml-B4X
Yet the potential or use cases of this library may be unknown as you can literally write plain HTML and save it as a file.
Example 1:
B4X:
H1.Text("Hello, World!")
Output:
Hello, World!
HTML:
<h1>Hello, World!</h1>
Example 2:
B4X:
P.up(main1) _
.Text("This is a ") _
.add(Span.Text("red text").addClass("text-danger")) _
.Text(" in a ") _
.add(B.text("paragraph"))
Output:
This is a red text in a paragraph
HTML:
<p>This is a
<span class="text-danger">red text</span> in a
<b>paragraph</b>
</p>
Example using HTMX:
HTMX+Bootstrap5+MiniHTML+WebApiUtils+Server
This example uses B4X, specifically MiniHTML library cross over HTMX to generate interactive HTML based on Modal Dialogs in Bootstrap example on HTMX website to demonstrate mix usage of HTMX and Bootstrap 5 javascript served by B4J server through helper functions from WebApiUtils v3 library...
GitHub: https://github.com/pyhoon/MiniHtml-B4X
Attachments
Last edited: