Repository: rustache/rustache (language: rust)

Issue:
Unexpected write to stdout
Given a template `{{#show}}{{#n}}{{/n}}{{/show}}`, and some json `{"show":true}`, calling `render_text` prints `show` to stdout. Is this intentional? How would I suppress this?

Full code example:

```
extern crate rustache;

use std::io::Read;

fn main() {

    let template = r#"{{#show}}{{#n}}{{/n}}{{/show}}"#.to_string();
    let json = r#"{"show":true}"#.to_string();

    let mut s = rustache::render_text(&template, json).expect("stream");
    let mut rendered = String::new();
    s.read_to_string(&mut rendered).expect("read to string");
    println!("Rendered: '{}'", rendered);

}
```

Tested with:
- stable-x86_64-apple-darwin
- nightly-2016-08-04-x86_64-apple-darwin



Discussion / hints:

Fix patch:
diff --git a/src/template.rs b/src/template.rs
index 633cbca..ee7feb1 100644
--- a/src/template.rs
+++ b/src/template.rs
@@ -336,7 +336,7 @@ impl Template {
     // writer:    io stream
     fn handle_section_node<W: Write>(&mut self,
                                       nodes: &Vec<Node>,
-                                      sectionkey: &String,
+                                      _: &String,
                                       data: &Data,
                                       datastore: &HashMap<String,Data>,
                                       sections: &mut Vec<String>,
@@ -403,8 +403,6 @@ impl Template {
                         // we need to save what sections we have been in, so the data
                         // lookup can happen correctly.  Data lookup is special for sections.
                         &false => {
-                          let foo = sectionkey;
-                          println!("{}", foo);
                           let tmpkey = key.to_string();
                           sections.push(tmpkey.clone());
                           let tmpdata = self.look_up_section_data(&tmpkey, sections, datastore);


Test patch: