]>
git.proxmox.com Git - rustc.git/blob - vendor/handlebars/tests/template_names.rs
1 extern crate handlebars
;
3 extern crate serde_json
;
5 use handlebars
::Handlebars
;
8 fn test_walk_dir_template_name() {
9 let mut hbs
= Handlebars
::new();
16 hbs
.register_template_string("foo/bar", "{{@root/b}}").unwrap();
18 hbs
.render_template("{{> foo/bar }}", &data
)
25 fn test_walk_dir_template_name_with_args() {
26 let mut hbs
= Handlebars
::new();
33 hbs
.register_template_string("foo/bar", "{{this}}").unwrap();
35 hbs
.render_template("{{> foo/bar b }}", &data
)