def read(self, source_path):
        """Parse content and metadata of creole files"""

        self._metadata = {}
        with pelican_open(source_path) as text:
            content = creole2html(text, macros={'header': self._parse_header_macro,
                                            'code': self._parse_code_macro})
        return content, self._metadata
def read ( self , source_path ) : self . _metadata = { } with pelican_open ( source_path ) as text : content = creole2html ( text , macros = { 'header' : self . _parse_header_macro , 'code' : self . _parse_code_macro } ) return content , self . _metadata
Parse content and metadata of creole files