regolith/basebuilder.py
def render(self, tname, fname, **kwargs):
        """Render the template into a file using the kwargs and global context

        Parameters
        ----------
        tname : str
            Template name
        fname : str
            Resulting file name
        kwargs : dict
            Additional kwargs to the renderer
        """
        template = self.env.get_template(tname)
        ctx = dict(self.gtx)
        ctx.update(kwargs)
        ctx['rc'] = ctx.get('rc', self.rc)
        ctx['static'] = ctx.get('static',
                                os.path.relpath('static',
                                                os.path.dirname(fname)))
        ctx['root'] = ctx.get('root',
                              os.path.relpath('/', os.path.dirname(fname)))
        result = template.render(ctx)
        with open(os.path.join(self.bldir, fname), 'wt') as f:
            f.write(result)
Render the template into a file using the kwargs and global context

        Parameters
        ----------
        tname : str
            Template name
        fname : str
            Resulting file name
        kwargs : dict
            Additional kwargs to the renderer
        
Render the template into a file using the kwargs and global context
Parameters

tname : str
Template name
fname : str
Resulting file name
kwargs : dict
Additional kwargs to the renderer
Render the template into a file using the kwargs and global context Parameters tname : str Template name fname : str Resulting file name kwargs : dict Additional kwargs to the renderer
def render(self, tname, fname, **kwargs):
        template = self.env.get_template(tname)
        ctx = dict(self.gtx)
        ctx.update(kwargs)
        ctx['rc'] = ctx.get('rc', self.rc)
        ctx['static'] = ctx.get('static',
                                os.path.relpath('static',
                                                os.path.dirname(fname)))
        ctx['root'] = ctx.get('root',
                              os.path.relpath('/', os.path.dirname(fname)))
        result = template.render(ctx)
        with open(os.path.join(self.bldir, fname), 'wt') as f:
            f.write(result)
def render ( self , tname , fname , ** kwargs ) : template = self . env . get_template ( tname ) ctx = dict ( self . gtx ) ctx . update ( kwargs ) ctx [ 'rc' ] = ctx . get ( 'rc' , self . rc ) ctx [ 'static' ] = ctx . get ( 'static' , os . path . relpath ( 'static' , os . path . dirname ( fname ) ) ) ctx [ 'root' ] = ctx . get ( 'root' , os . path . relpath ( '/' , os . path . dirname ( fname ) ) ) result = template . render ( ctx ) with open ( os . path . join ( self . bldir , fname ) , 'wt' ) as f : f . write ( result )
Render the template into a file using the kwargs and global context
Parameters
Render the template into a file using the kwargs and global context Parameters
"""Render the template into a file using the kwargs and global context

        Parameters
        ----------
        tname : str
            Template name
        fname : str
            Resulting file name
        kwargs : dict
            Additional kwargs to the renderer
        """
self
tname
fname