1. 20 Sep, 2011 2 commits
    • Mike Samuel's avatar
      exp/template/html: allow commenting out of actions · 8bc5ef6c
      Mike Samuel authored
      Instead of erroring on actions inside comments, use existing escaping
      pipeline to quash the output of actions inside comments.
      
      If a template maintainer uses a comment to disable template code:
      
        {{if .}}Hello, {{.}}!{{end}}
      
      ->
      
        <!--{{if true}}Hello, {{.}}!{{end}}-->
      
      will result in
      
        <!--Hello, !-->
      
      regardless of the value of {{.}}.
      
      In a later CL, comment elision will result in the entire commented-out
      section being dropped from the template output.
      
      Any side-effects in pipelines, such as panics, will still be realized.
      
      R=nigeltao
      CC=golang-dev
      https://golang.org/cl/5078041
      8bc5ef6c
    • Mike Samuel's avatar
      exp/template/html: define isComment helper · 533b3722
      Mike Samuel authored
      Non semantics-changing refactoring in preparation for comment elision.
      
      R=nigeltao
      CC=golang-dev
      https://golang.org/cl/5071043
      533b3722
  2. 19 Sep, 2011 22 commits
  3. 18 Sep, 2011 2 commits
  4. 17 Sep, 2011 8 commits
  5. 16 Sep, 2011 6 commits