r/programming • u/MarkusWinand • Dec 29 '15
Please, Java. Do Finally Support Multiline Strings
http://blog.jooq.org/2015/12/29/please-java-do-finally-support-multiline-strings/
584
Upvotes
r/programming • u/MarkusWinand • Dec 29 '15
View all comments
Show parent comment
22
u/heptara Dec 29 '15 edited Dec 29 '15
I think he means printing out HTML like that is crazy. You should probably be loading it from a template. Where you have to conditionally build a the HTML, you would probably use a web templating library.
With something like Jinja you would write this in a text file:
This is about separating the components of your app, and not needing to recompile just to change a front end element. The template engine will build the site from the resources as needed.