mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user