• Andrew Gerrand's avatar
    text/template, html/template: add block keyword and permit template redefinition · 12dfc3be
    Andrew Gerrand authored
    This change adds a new "block" keyword that permits the definition
    of templates inline inside existing templates, and loosens the
    restriction on template redefinition. Templates may now be redefined,
    but in the html/template package they may only be redefined before
    the template is executed (and therefore escaped).
    
    The intention is that such inline templates can be redefined by
    subsequent template definitions, permitting a kind of template
    "inheritance" or "overlay". (See the example for details.)
    
    Fixes #3812
    
    Change-Id: I733cb5332c1c201c235f759cc64333462e70dc27
    Reviewed-on: https://go-review.googlesource.com/14005Reviewed-by: 's avatarRob Pike <r@golang.org>
    12dfc3be
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...