コード例 #1
0
ファイル: Closure.py プロジェクト: resistorsoftware/box2d
    def build_and_process(self, source_html, target_html, debug=False, skip_build=False):
        self.debug = debug
        if not skip_build:
            self.build()

        source_js_files = [os.path.join(closure_path, "goog", "base.js")]
        source_js_files += [self.application_js_path, self.deps_js_path]
        HtmlPost.replaceJsFiles(source_html, target_html, self.compiled_js_path, source_js_files)
コード例 #2
0
  def build_and_process(self, source_html, target_html, debug = False, skip_build = False):
    if(not skip_build):
      self.deps_and_compile(debug)
    
    source_js_files = [os.path.join(self.googPath(), 'base.js')]
    source_js_files += [self.deps_js_path]

    if(self.application_js_path):
      source_js_files += [self.application_js_path]
    HtmlPost.replaceJsFiles(source_html, target_html, self.compiled_js_path, source_js_files)