@Karv Prime
I was looking for a library for this but i have not been able to find any
yet. Did you have any luck? I have worked with http://www.thymeleaf.org/
for Java extensively and I really enjoyed it. Its a lot easier to work with
the front-end people with legal html. Dom manipulation gives a lot more
separation than is possible with simple template/injection in my opinion.
Maybe we should start on making a golang lib for this... :-)
@Marvin Renich
Not to start a war on which approach is better but when using the dom
manipulation.
<p>Hello, {{.Name}}, you last logged in on {{.PrevLogin}}.</p>
would be:
<p th:text="#{hello}">All this text will be replaced by the hello var. This
way the front end developer can test with long/short texts (user names) and
see how they look</p>
Also if doing localization you would not have static text like that in your
html template.
Also:
<div th:replace="header"></div> - is much better IMO. The front-end guy
can put in whatever html he needs to test the div content and it will all
get replaced when the dom is parsed.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.