```rust use wild_doc::*;
let dir="./wd-test/"; if std::path::Path::new(dir).exists(){ std::fs::removedirall(dir).unwrap(); std::fs::createdirall(dir).unwrap(); }else{ std::fs::createdirall(dir).unwrap(); } let mut wd=WildDoc::new( dir ,IncludeLocal::new("./include/") ).unwrap();
//update data.
wd.exec(r#"
//select data.
let r=wd.exec(r#"
//seaech data
let r=wd.exec(r#"
//use javascript
let r=wd.exec(r#"
//search in update section.
wd.exec(r#"
xml
<html>
<head>
<title>HTML include test</title>
</head>
<body>
<wd:include wd:src="wd.v('body_path')" />
</body>
</html>
xml
BODY
rust
let r=wd.exec(r#"<wd><wd:stack var="body_path:'body.xml'">
<wd:include src="layout.xml" />
<wd:stack></wd>"#);
println!("{}",r);
html
<html>
<head>
<title>HTML include test</title>
</head>
<body>
BODY
</body>
</html>