.[ 9, 10, 11, 12 ]
],
- test = ^reg,
+ test = req,
});
res->status(200);
}
#if #defined(runtime.vars.Debug) {
app->pipe((req, res) => {
- printf("Before: {}\n", alloc.heap.get_watermark());
+ // printf("Before: {}\n", alloc.heap.get_watermark());
reg->refresh_templates();
- printf("After: {}\n", alloc.heap.get_watermark());
+ // printf("After: {}\n", alloc.heap.get_watermark());
});
}
package otmp
-
-#load "core/std"
#load_all "./src"
return .Template_Not_Found;
}
- tscope, err := core.misc.any_to_map(scope);
+ tscope, _ := core.misc.any_to_map(scope);
defer delete(^tscope);
return temp->render(self, ^tscope, output);
#package
render_template :: (use r: ^TemplateRenderer) -> Error {
- core.printf("{*}\n", scope);
-
return render_instructions(r, t.instructions);
}
sub_any := resolve_expr_to_any(r, subscript.var);
sub := any_to_int(resolve_expr_to_any(r, subscript.sub));
- core.printf("{} {}\n", sub_any, sub);
-
return any_subscript(sub_any, ~~ sub);
}
}
</tbody>
</table>
- <p>Name: {% $test.templates.entries[0] %} </p>
- <p>Age: {% $test.arena %} </p>
+ <p>Name: {% $test.headers %} </p>
+ <p>Age: {% $test.cookies %} </p>
{{endblock}}