You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am wondering if this is possible or am I doing something wrong?
the following code:
Mustache = require 'mustache'
person =
name : "john"
email: "john@domain.com"
template = """
<p>Hello {{name}}</p>
<p>your email is: {{email}}</p>
"""
output = Mustache.to_html template, person
console.log output
works fine when using cat test.coffee | coffee -s through terminal, but if running with cmd+b the Run command within textmate it returns:
Error: Cannot find module 'mustache' at Function._resolveFilename (module.js:289:11) at Function._load (module.js:241:25) at require (module.js:317:19) at Object. (.:3:14) at Object. (.:11:4) at Module._compile (module.js:373:26) at Object.run (/usr/local/lib/node/.npm/coffee-script/1.0.1/package/lib/coffee-script.js:55:19) at /usr/local/lib/node/.npm/coffee-script/1.0.1/package/lib/command.js:115:29 at Socket. (/usr/local/lib/node/.npm/coffee-script/1.0.1/package/lib/command.js:149:14) at Socket.emit (events.js:39:17)
Is there any way to use require modules using textmate bundle?
It seems require 'sys' is possible though...
The text was updated successfully, but these errors were encountered:
Hello, I am wondering if this is possible or am I doing something wrong?
the following code:
works fine when using
cat test.coffee | coffee -s
through terminal, but if running with cmd+b the Run command within textmate it returns:Is there any way to use require modules using textmate bundle?
It seems
require 'sys'
is possible though...The text was updated successfully, but these errors were encountered: