RejectedSoftware Forums

Sign up

Troubles when using .jade instead of .dt

I found a great plugin to get syntax highlighting in Visual Studio :
https://nodejstools.codeplex.com/releases/view/104141

The issue is this plugin made for node.js so it works only with .jade files.

As .dt are really close it works fine, but when using layouts files aren't found cause file extension (.dt) is hard coded when vibe.d parse the extends keyword.

Is there a way to customize the extension vibe will look for?

I think it would be nice to use :
extends layout.dt
instead of
extends layout

so
extends layout.jade
will work to.

Re: Troubles when using .jade instead of .dt

Am 24.11.2014 23:07, schrieb Xavier Bigand:

I found a great plugin to get syntax highlighting in Visual Studio :
https://nodejstools.codeplex.com/releases/view/104141

The issue is this plugin made for node.js so it works only with .jade files.

As .dt are really close it works fine, but when using layouts files aren't found cause file extension (.dt) is hard coded when vibe.d parse the extends keyword.

Is there a way to customize the extension vibe will look for?

I think it would be nice to use :
extends layout.dt
instead of
extends layout

so
extends layout.jade
will work to.

While that wouldn't be possible without breaking existing code, we could
add a syntax for disambiguation, such as extends "layout.jade",
extends :layout.jade or similar. Any other ideas for such a syntax,
maybe there is a precedent somewhere?