Re: [go-nuts] Re: "html/dom" alternative to html/template for true separation of concerns?

2017-09-14 Thread Karv Prime
@Andy Balholm: Perfect. I've seen some other template engines where that didn't happen at all and the artifacts stayed. @Marvin Renich: Yet tags, classes and ids are HTML standard syntax and used for styling and scripting purposes. {{[...]}} is only a placeholder. It makes no difference per se,

Re: [go-nuts] Re: "html/dom" alternative to html/template for true separation of concerns?

2017-09-14 Thread Karv Prime
@Andy Balholm: Perfect. I've seen some other template engines where that didn't happen at all and the artifacts stayed. @Marvin Renich: Yet tags, classes and ids are HTML standard syntax and used for styling and scripting purposes. {{[...]}} is only a placeholder. It makes no difference per se,

[go-nuts] Re: "html/dom" alternative to html/template for true separation of concerns?

2017-09-14 Thread Karv Prime
As it would get a little bit confusing if I'd reply to everyone with a single post, I'll answer in a single post. I hope you don't mind. At least now it's past 16:00 and not past 04:00 and I have a clearer mind. ^^ @Egon: I've read the whole article - yes, many coders sadly do forget about prop

Re: [go-nuts] "html/dom" alternative to html/template for true separation of concerns?

2017-09-13 Thread Karv Prime
of “it” incorrectly?) > > Andy > > On Sep 13, 2017, at 4:30 PM, Karv Prime > > wrote: > > Thank you for the heads up. So it is completely impractical for the needed > purpose. > > In that case it would be truly bad. That's why user input should always be > chec

Re: [go-nuts] "html/dom" alternative to html/template for true separation of concerns?

2017-09-13 Thread Karv Prime
mple html >> encoder with the necessary models >> isn't too complicated ( >> https://github.com/egonelbre/exp/blob/master/htmlrender/main.go) >> >> But the huge con you are ignoring is the Security Model. ( >> https://rawgit.com/mikesamuel/sanitized-jquery-templates

Re: [go-nuts] "html/dom" alternative to html/template for true separation of concerns?

2017-09-13 Thread karv . prime
Yes, exactly that. :) Thank you - label "Template Animation" was unknown to me as I know it as "DOM Manipulation". ^^ It really makes things way easier. Okay, I'll look into goquery. I just had hope that the standard library could get some extension instead of relying on a 3rd party. Am Mittwoc

[go-nuts] Re: "html/dom" alternative to html/template for true separation of concerns?

2017-09-13 Thread karv . prime
mplates/trunk/safetemplate.html#problem_definition > ) > > Anyways it's unclear what you are proposing or needing: in general > standard libraries shouldn't do everything > and probably this, whatever it is, should belong to a 3-rd party package. > > + Egon > > On Wednes

[go-nuts] "html/dom" alternative to html/template for true separation of concerns?

2017-09-13 Thread karv . prime
Hello, I only recently found my way to go. I'm a (former?) fullstack web-dev and as I ran into a PHP related problem (DOMDocument not working with HTML5 tags, I'd choose another solution stack if the language wouldn't be a fixed point in history) I was looking if Go already has a good way to ma