mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
35d005f752
commit
e7fa8fd894
@ -36,6 +36,15 @@ class JavaScriptLoader(object):
|
|||||||
|
|
||||||
def __init__(self, dynamic_coffeescript=False):
|
def __init__(self, dynamic_coffeescript=False):
|
||||||
self._dynamic_coffeescript = dynamic_coffeescript
|
self._dynamic_coffeescript = dynamic_coffeescript
|
||||||
|
if self._dynamic_coffeescript:
|
||||||
|
try:
|
||||||
|
from calibre.utils.serve_coffee import compile_coffeescript
|
||||||
|
compile_coffeescript
|
||||||
|
except:
|
||||||
|
self._dynamic_coffeescript = False
|
||||||
|
print ('WARNING: Failed to load serve_coffee, not compiling '
|
||||||
|
'coffeescript dynamically.')
|
||||||
|
|
||||||
self._cache = {}
|
self._cache = {}
|
||||||
self._hp_cache = {}
|
self._hp_cache = {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user