B4J Code Snippet Basic To Html

Hello!

I just recently began building a web with B4J and everything was OK until i found that if i wanted to create 4 pages that were almost identical (for example: same header, menu, etc.) i would need to mantain 4 different html files, without the possibility to merge them gracefully enough to still have some differences in them.

So i created this small class called tag that let me create webpages programmatically or better said, .html files with some nice features.

To use it just declare it and add attributes, another tags, some inner text, and thats all!
Attached is a small project containing an example on how to use it.

Hope you like it.
 

Attachments

  • Tag.zip
    2.5 KB · Views: 747

aeric

Expert
Licensed User
Longtime User
Hi @EnriqueGonzalez ,
Have you updated this class since then?
Thanks.
When I am free I will try to continue to work on it.

I also planning to integrate into this project.

1685781597371-png.142554
 

EnriqueGonzalez

Expert
Licensed User
Longtime User
Oh wow that actually has some future, many clients prefer something like bootstrap studio instead of writing html. The problem is that mixing BS with htmx and freemarker has proven difficult. Your project could change that
 

aeric

Expert
Licensed User
Longtime User
Oh wow that actually has some future, many clients prefer something like bootstrap studio instead of writing html. The problem is that mixing BS with htmx and freemarker has proven difficult. Your project could change that
I haven't seriously started to use HTMX but I really want to use it.
I am still comfortable with API and AJAX. HTMX is really a different paradigm shift.
 

EnriqueGonzalez

Expert
Licensed User
Longtime User
It has proven to be the way to go in programming communities like Django and all go frameworks. Your should really give it a try, it simplifies a lot of things and helps you doing more b4x.
 
Top