FAQ
a.tpl:

{{define "a"}}
     {{template "b"}}
{{end}}

b.tpl:
{{define "b"}}
{{end}}

why throw: not find "b" template?

If I remove {{define "a"}} from a.tpl, and execute(a.tpl) directly,
that's OK.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Steven Blenkinsop at Sep 24, 2013 at 4:16 pm
    Show your code?
    On Tuesday, September 24, 2013, smithfox wrote:

    a.tpl:

    {{define "a"}}
    {{template "b"}}
    {{end}}

    b.tpl:
    {{define "b"}}
    {{end}}

    why throw: not find "b" template?

    If I remove {{define "a"}} from a.tpl, and execute(a.tpl) directly,
    that's OK.

    --
    You received this message because you are subscribed to the Google Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to golang-nuts+unsubscribe@googlegroups.com <javascript:_e({},
    'cvml', 'golang-nuts%2Bunsubscribe@googlegroups.com');>.
    For more options, visit https://groups.google.com/groups/opt_out.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedSep 24, '13 at 3:09p
activeSep 24, '13 at 4:16p
posts2
users2
websitegolang.org

2 users in discussion

Steven Blenkinsop: 1 post Smithfox: 1 post

People

Translate

site design / logo © 2022 Grokbase