Beispiel #1
0
function render(template: Template, context = {}, view: PathReference<Opaque> = null) {
  let options = { appendTo: root, dynamicScope: new TestDynamicScope(view) };
  self = new UpdatableReference(context);
  result = template.render(self, env, options);
  assertInvariants(result);
  return result;
}
function render(template: Template, self: any) {
  return template.render(new UpdatableReference(self), env, { appendTo: root, dynamicScope: new TestDynamicScope(null) });
}
Beispiel #3
0
function render(template: Template, context={}) {
  self = new UpdatableReference(opaque(context));
  result = template.render(self, env, { appendTo: root, dynamicScope: new TestDynamicScope(null) });
  assertInvariants(result);
  return result;
}
Beispiel #4
0
function render<T>(template: Template<T>, context={}) {
  self = new UpdatableReference(opaque(context));
  result = template.render(self, root, new TestDynamicScope());
  assertInvariants(result);
  return result;
}
Beispiel #5
0
function render<T>(template: Template<T>, self: any) {
  return template.render(new UpdatableReference(self), root, new TestDynamicScope());
}