code: def compile_file(fullpath, outfile_name, compiler_args):
      
      if Options.VERBOSE:
          print '%s %s -> %s' % (strftime("%H:%M:%S"), fullpath, outfile_name)
      try:
          if Options.DEBUG:
              print "Compiling %s -> %s" % (fullpath, outfile_name)
          haml_lines = codecs.open(fullpath, 'r', encoding = 'utf-8').read().splitlines()
          compiler = hamlpy.Compiler(compiler_args)
          output = compiler.process_lines(haml_lines)
          outfile = codecs.open(outfile_name, 'w', encoding = 'utf-8')
          outfile.write(output)
      except Exception, e:
          # import traceback
          print "Failed to compile %s -> %s\nReason:\n%s" % (fullpath, outfile_name, e)
docs: Calls HamlPy compiler.