bakery/bakery.py
def _new_resource(self, path):
        """ Internal factory for creating a resource from path.
        """
        source_path = path.replace(self.config.source_dir, '', 1)
        if source_path.startswith(u'/_') or source_path.startswith(u'_'):
            return None
        if source_path.endswith('.md'):
            a = PageResource(self.config, source=source_path)
            if 'articles' not in self.context:
                self.context['articles'] = {}
            self.articles.append(a)
            return a
        elif path.endswith('.html'):
            r = PageResource(self.config, source=source_path)
            return r
 Internal factory for creating a resource from path.
        
Internal factory for creating a resource from path.
Internal factory for creating a resource from path .
def _new_resource(self, path):
        source_path = path.replace(self.config.source_dir, '', 1)
        if source_path.startswith(u'/_') or source_path.startswith(u'_'):
            return None
        if source_path.endswith('.md'):
            a = PageResource(self.config, source=source_path)
            if 'articles' not in self.context:
                self.context['articles'] = {}
            self.articles.append(a)
            return a
        elif path.endswith('.html'):
            r = PageResource(self.config, source=source_path)
            return r
def _new_resource ( self , path ) : source_path = path . replace ( self . config . source_dir , '' , 1 ) if source_path . startswith ( u'/_' ) or source_path . startswith ( u'_' ) : return None if source_path . endswith ( '.md' ) : a = PageResource ( self . config , source = source_path ) if 'articles' not in self . context : self . context [ 'articles' ] = { } self . articles . append ( a ) return a elif path . endswith ( '.html' ) : r = PageResource ( self . config , source = source_path ) return r
Internal factory for creating a resource from path.
Internal factory for creating a resource from path .
""" Internal factory for creating a resource from path.
        """
self
path