use std::collections::HashMap;

#[deriving(PartialEq, Show)]
pub struct Post {
    header: HashMap<String, String>,
    content: String
}

impl Post {
    pub fn new(header: HashMap<String, String>, content: &str) -> Post {
        Post { header: header, content: content.to_string() }
    }
}

use std::collections::HashMap;

#[deriving(PartialEq, Show)]
pub struct Post {
    header: HashMap<String, String>,
    content: String
}

impl Post {
    pub fn new(header: HashMap<String, String>, content: &str) -> Post {
        Post { header: header, content: content.to_string() }
    }

    pub fn content(&self) -> &str {
        self.content.as_slice()
    }
}

Add method to retrieve content from Post
Add method to retrieve content from Post
