'Load a template from a string.  This parses the source given and
returns a :class:`Template` object.'

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)
