mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03: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:
parent
adc94d662f
commit
7396c156db
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user