def from_string(self, source, globals=None, template_class=None):
        """Load a template from a string.  This parses the source given and
        returns a :class:`Template` object.
        """
        globals = self.make_globals(globals)
        cls = template_class or self.template_class
        return cls.from_code(self, self.compile(source), globals, None)
def from_string ( self , source , globals = None , template_class = None ) : globals = self . make_globals ( globals ) cls = template_class or self . template_class return cls . from_code ( self , self . compile ( source ) , globals , None )
Load a template from a string.  This parses the source given and
        returns a :class:`Template` object.