malgorithms / toffee

a NodeJS and browser templating language based on coffeescript, with the slickest syntax ever
MIT License
174 stars 10 forks source link

Wrong Path with Locomotive #10

Closed mauriciodarocha closed 11 years ago

mauriciodarocha commented 11 years ago

Hi Chris Coyne.

I really liked Toffee and I was planning to use on my project, but I had a problem when using with Locomotivejs.

When I inserted toffee as my template engine, I have a error that my files cannot be found. Couldn't load D:\www\loco\hello\D:\www\loco\hello\app\views\pages\main.html.toffee

At first I thought to be a Locomotive issue... I'm not sure.

But I also tried haml-coffee and worked.

Can you help fix it? I'm planning to fork it and make the changes myself if you are busy.

I'm using in windows 7 x64.

Thanks in advance.

Mauricio.

malgorithms commented 11 years ago

Hopefully I can fix this in a few hours. I'm sure I made a windows-specific mistake in path handling where I hardcoded something unixy I shouldn't have.

Gotta get node set up in windows, though.

malgorithms commented 11 years ago

Hi Mauricio -

I reproduced the error that you described in my own test cases when trying to run them on windows. And then I fixed the problem. I was doing some windows unfriendly stuff (pretty JV) with path resolution.

Can you confirm the latest version of toffee fixes this for you (version 0.0.62)?

mauriciodarocha commented 11 years ago

Hi Chris.

It worked! Good work! Thank you so much.

malgorithms commented 11 years ago

Great. I suspect there are a few other windows issues around, so let me know if you encounter any.