예제 #1
0
class Templates(Tweak("Templates")):
    
    def __init__(self, load_from=None):   
             
        self.LOADER = Parameter()
        self.tweak()
        self.loader = self.LOADER(load_from)
        self.mutagen = Mutagen()  
    
    def load(self, name):            
        return self.mutagen.mutate(
            loader=self.loader,
            template=self.loader.load(name))
예제 #2
0
 def __init__(self, load_from=None):   
          
     self.LOADER = Parameter()
     self.tweak()
     self.loader = self.LOADER(load_from)
     self.mutagen = Mutagen()