From 7396c156dbf3192bec53dd20bceaaa36223037b1 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Mon, 29 Aug 2011 23:41:43 -0700 Subject: [PATCH] we can require() any files we want! non-js files come back as plaintext. this commit also fixes reloading of html files, since require() will look in your dev paths by way of require.paths :zap: --- plugins/project/project.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/project/project.coffee b/plugins/project/project.coffee index 0bbbd7b5b..573bc7df0 100644 --- a/plugins/project/project.coffee +++ b/plugins/project/project.coffee @@ -7,7 +7,7 @@ Editor = require 'editor' {bindKey} = require 'editor' exports.init = -> - @html = File.read Chrome.appRoot() + "/plugins/project/project.html" + @html = require "project/project.html" bindKey 'toggleProjectDrawer', 'Command-Ctrl-N', (env) => @toggle()