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

settings option to change generated Pug file extension from .html to .tpl or something else #5

Open
BananaAcid opened this issue Apr 2, 2020 · 2 comments
Labels

Comments

@BananaAcid
Copy link

BananaAcid commented Apr 2, 2020

Unfortunately, compiling a pug file always becomes file.html

I need it to become file.tpl and in another project: file.php (that is because the pug contains php and ideally needs the correct file ext)

Would be great to have this option (changing the extension).
https://github.com/Wscats/compile-hero/blob/master/vscode-extension/src/extension.ts#L183

Like using: https://github.com/pugjs/pug-cli
option: -E, --extension <ext> specify the output file extension

@Wscats
Copy link
Owner

Wscats commented Apr 5, 2020

@BananaAcid

Click to open the extension management interface Configure Extension Settings, You can change the path of the project compilation directory, or toggle the switch of language.

image

https://github.com/Wscats/compile-hero#Configuration

@BananaAcid
Copy link
Author

BananaAcid commented Apr 5, 2020

Exactly there, in the config, is the option I want, missing. I added more info to my question.

@BananaAcid BananaAcid changed the title change pug extension change generated Pug file extension from .html to .tpl or something else Apr 5, 2020
@BananaAcid BananaAcid changed the title change generated Pug file extension from .html to .tpl or something else settings option to change generated Pug file extension from .html to .tpl or something else Apr 21, 2020
@Wscats Wscats added the feature label May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants