Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing kaffeine files #21

Open
felixge opened this issue Apr 15, 2011 · 7 comments
Open

Executing kaffeine files #21

felixge opened this issue Apr 15, 2011 · 7 comments

Comments

@felixge
Copy link

felixge commented Apr 15, 2011

I might be doing this wrong, but I was hoping to be able to execute kaffeine files with node.js directly by typing:

$ kaffeine my_file.k

But currently that seems to do nothing. Is that the expected behavior?

@weepy
Copy link
Owner

weepy commented Apr 16, 2011

I must have broken it a while ago and not noticed - I've been using the node API :

(new (require("kaffeine"))()).compile(txt)

I'll be able to take a look at this fixing this on Monday

@felixge
Copy link
Author

felixge commented Apr 16, 2011

Do you also hook in require.extensions?

Btw. do you think there is any chance of getting rid of the 'glob' dependency? I would prefer being able to include kaffeine in my modules directly, so compiling is a little annoying.

@weepy
Copy link
Owner

weepy commented Apr 16, 2011

Yes - hooked into .extensions. You can run kaffeine files directly if you've already done require("kaffeine") somewhere. Also there's a knode binary so you can knode myserver.k.

Sure I can remove glob - as it's not directly needed.

@felixge
Copy link
Author

felixge commented Apr 16, 2011

Cool, thanks for the tips. I'll experiment further!

@weepy
Copy link
Owner

weepy commented Apr 16, 2011

No probs. Let me know how you get on ^_^

Tapped on my fone

On 16 Apr 2011, at 12:49, felixge
reply@reply.github.com
wrote:

Cool, thanks for the tips. I'll experiment further!

Reply to this email directly or view it on GitHub:
#21 (comment)

@felixge
Copy link
Author

felixge commented Apr 16, 2011

Will do. Do you have time to chat today? If so just ping me here and I'll come in the koffeine irc channel.

@weepy
Copy link
Owner

weepy commented Apr 16, 2011

hey im there now - for a little while

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants