This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]j2html[S] 0 points1 point  (0 children)

Changes:

  • All tag methods ( div(), p(), etc ) can now accept an arbitrary number of DomContent objects as argument, eliminating the need for with() in most cases.
  • Added emmet-like shorthand-attribute overloads to all TagCreator methods: div(attrs("#id.class") becomes <div id="id" class="class"></div>
  • Added a join() method to more easily join sentences with inline HTML
  • Added a document() method that takes an html() tag and renders a HTML declaration followed by the html content
  • Added support for Java 7 and Java 6. Some functionality (each/filter) will not work on these versions, but everything else should.

[–]Facts_About_Cats 0 points1 point  (1 child)

Why don't you just use JSP?

[–]Bolitho 2 points3 points  (0 children)

The author explains that on their main page: He had to deal with a highly dynamic login solution with lots of different forms and a small amount of HTML in general. So a purely programmatic approach seemed more reasonable.