Use tree-value storage in template