Re: [go-nuts] Strip HTML comments before processing template

2024-12-31 Thread atilkan
rovide enough information for us to do more than make educated guesses. >> >> I took the first example program at >> https://pkg.go.dev/html/temp...@go1.23.4 >> <https://pkg.go.dev/html/template@go1.23.4> and inserted your string as >> the first line of the "const

[go-nuts] Strip HTML comments before processing template

2024-12-30 Thread atilkan
Hi, I am trying to add html comment (yes, they will be removed). I believe it strips the comments after processing the template. If you put non-existing property inside html comments, it throws error. Maybe better to strip comments before processing the template? `` I would paste the whole err

Re: [go-nuts] Strip HTML comments before processing template

2024-12-30 Thread Emrah ATILKAN
t evaluate stuff. The outer > tics also make me think javascript. I inserted the statement (with & > without outer tics) but don't get an error message on the console. > > On Mon, Dec 30, 2024 at 11:23 AM atilkan wrote: > >> Hi, >> I am trying to add html commen