def on_post_save(self, view):
     log("on_post_save")
     if view is not None and view.file_name() is not None:
         if view_tools.is_supported(view) or view.file_name().endswith(".erazor.html"):
             if (hxsettings.build_on_save()):
                 project = hxproject.current_project(view)
             
                 if len(project.builds) > 0:
                     project.run_sublime_build( view )
                 else:
                     project.extract_build_args(view, False)
                     build = project.get_build(view)
                     if (build != None):
                         project.run_sublime_build( view )
 def on_activated( self , view ) :
     if view is not None and view.file_name() is not None and view_tools.is_supported(view): 
         project = hxproject.current_project(view)
    def on_load( self, view ) :

        if view is not None and view.file_name() is not None and view_tools.is_supported(view): 
            if not hxproject.current_project(view).has_build():
                hxproject.current_project(view).generate_build( view )