Exemplo n.º 1
0
        public static DataMap Zip(ICollection <string> keys, ICollection <string> values)
        {
            var data = new DataMap();
            var ki   = keys.GetEnumerator();
            var vi   = values.GetEnumerator();

            while (ki.MoveNext())
            {
                data.Set(ki.Current, vi.MoveNext() ? vi.Current : "");
            }
            return(data);
        }
Exemplo n.º 2
0
 protected virtual T RenderE(Text elem, Template tpl, DataMap data)
 {
     throw new Exception("Unsupported element.");
 }
Exemplo n.º 3
0
 public T Render(Template tpl, DataMap data = null)
 {
     return(Render(tpl.elem, tpl, data));
 }