Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2014-02-23 04:20:50 +0400
committerFeross Aboukhadijeh <feross@feross.org>2014-02-23 04:20:50 +0400
commit0b3be2cb0f2396c8235baa38879d7cb8e56acfe0 (patch)
treecf06244938a9437e6c022b2ae7304744dbe1f225 /index.js
parent458033ae44d218588f6d20b6ef45800055995fb4 (diff)
use handlebars for templating
Diffstat (limited to 'index.js')
-rw-r--r--index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.js b/index.js
index 179f822..afed7e1 100644
--- a/index.js
+++ b/index.js
@@ -1,3 +1,8 @@
+// Load pre-compiled handlebars templates and put them on require('handlebars').templates
+if (!require('handlebars').templates) {
+ require('./views/compiled')
+}
+
var App = require('./lib/app')
var TorrentManager = require('./lib/torrent-manager')