#NEWLINE# @ classmethod #NEWLINE# def compile( cls , node , filename ) : #NEWLINE# #INDENT# ' The main entry point to the compiler.\n\n        Parameters\n        ----------\n        node : Template\n            The enaml ast Template node to compile.\n\n        filename : str\n            The filename of the node being compiled.\n\n        Returns\n        -------\n        result : CodeType\n            The compiled code object for the node.\n\n        ' #NEWLINE# assert isinstance ( node , Template ) , 'invalid node' #NEWLINE# compiler = cls ( filename = filename ) #NEWLINE# return compiler . visit ( filename )