bakery/bakery.py
def load(self, path):
        """ Return content and context from path.

        Return a tuple consisting of the content as a string and a dict
        representing the context extracted from a yaml front matter if 
        present in the content.
        """
        context = {}
        with codecs.open(self.source + path, 'r', encoding='utf-8') as f:
            content = f.read()
        result = re.search(r'^(---\s*\n.*?\n?)^(---\s*$\n?)', content, re.DOTALL|re.MULTILINE)
        if result:
            front_matter = result.group(1)
            context = yaml.load(front_matter)
            content = content[result.end(0):len(content)]
        return content, context
 Return content and context from path.

        Return a tuple consisting of the content as a string and a dict
        representing the context extracted from a yaml front matter if 
        present in the content.
        
Return content and context from path.
Return a tuple consisting of the content as a string and a dict
representing the context extracted from a yaml front matter if
present in the content.
Return content and context from path . Return a tuple consisting of the content as a string and a dict representing the context extracted from a yaml front matter if present in the content .
def load(self, path):
        context = {}
        with codecs.open(self.source + path, 'r', encoding='utf-8') as f:
            content = f.read()
        result = re.search(r'^(---\s*\n.*?\n?)^(---\s*$\n?)', content, re.DOTALL|re.MULTILINE)
        if result:
            front_matter = result.group(1)
            context = yaml.load(front_matter)
            content = content[result.end(0):len(content)]
        return content, context
def load ( self , path ) : context = { } with codecs . open ( self . source + path , 'r' , encoding = 'utf-8' ) as f : content = f . read ( ) result = re . search ( r'^(---\s*\n.*?\n?)^(---\s*$\n?)' , content , re . DOTALL | re . MULTILINE ) if result : front_matter = result . group ( 1 ) context = yaml . load ( front_matter ) content = content [ result . end ( 0 ) : len ( content ) ] return content , context
Return content and context from path.
Return content and context from path .
""" Return content and context from path.

        Return a tuple consisting of the content as a string and a dict
        representing the context extracted from a yaml front matter if 
        present in the content.
        """
self
path