I'm trying to render {{ verb }}
as raw html in a Go template. However, I can't find a way to escape this so Go doesn't try to interpret it.
So far, I've come up with
{{print "{{ verb }}"}}
Is there a more elegant way?
I'm trying to render {{ verb }}
as raw html in a Go template. However, I can't find a way to escape this so Go doesn't try to interpret it.
So far, I've come up with
{{print "{{ verb }}"}}
Is there a more elegant way?
somethimes ? You can try it :
verb :="{{"+verb+"}}"
{{print .verb }}
All verb ?
the best way : change the template tag "{{}}" to other