zuzu-rust 0.6.0

Rust implementation of ZuzuScript
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from std/template/z import ZTemplate;
from test/c41/child import DisplayChild;
from test/more import *;

let obj := new DisplayChild( name: "Nori" );
let data := {
	label: obj.display_tag(),
	name: obj.get_name(),
};

let tpl := new ZTemplate( string: "{{ label }}|{{ name }}" );
let out := tpl.process(data);

is( out, "tag:Nori|Nori", "template renders data derived from trait-backed method and inherited accessor" );

done_testing();