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 
This commit is contained in:
Chris Wanstrath 2011-08-29 23:41:43 -07:00
parent adc94d662f
commit 7396c156db

View File

@ -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()