Calculate total/tax in receipt
tmarcoe opened this issue · comments
I like your java library. I'm using it to generate html formatted emails. What I am trying to do is show a sales receipt with a total at the bottom. I have everything except a way to total up the price and tax for each line item so I can put the grand total at the bottom of the page. Is there any documentation that I am missing?
That should be computed by caller and is not the job of an html rendering library.
While I agree that the documentation could use some improvement, the functionality you're describing is outside of the scope of the project.
j2html is strictly a rendering library, it only cares about transforming Java code to HTML. Any business logic will have to be implemented by the end users.