Serialize the template in <meta> and have its pre-initialization create the client-side Vars, find the above ws-vars and bind them. Also make these holes available globally to RunFullDocTemplate as some-guid::MyVar.
Render ${MyVar} text holes as ${some-guid::MyVar}, so that it gets picked up by RunFullDocTemplate.
During post-initialization, call RunFullDocTemplate. This populates all the ${some-guid::MyVar}s, unless that was already done by the user calling a template's .Bind() (which calls RunFullDocTemplate) during initialization (eg in a Web.Control).
Fixes #200.
Before this PR, a server-side var such as this:
would be rendered as something like this:
This PR does the following:
Render the above as this instead:
Serialize the template in
<meta>
and have its pre-initialization create the client-side Vars, find the abovews-var
s and bind them. Also make these holes available globally toRunFullDocTemplate
assome-guid::MyVar
.Render
${MyVar}
text holes as${some-guid::MyVar}
, so that it gets picked up byRunFullDocTemplate
.During post-initialization, call
RunFullDocTemplate
. This populates all the${some-guid::MyVar}
s, unless that was already done by the user calling a template's.Bind()
(which callsRunFullDocTemplate
) during initialization (eg in a Web.Control).