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

Already on GitHub? Sign in to your account

Executing kaffeine files #21

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

Comments

Projects
None yet
2 participants

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?

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 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.

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 commented Apr 16, 2011

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

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 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.

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