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

how to change the destination filename extension in console #1645

Closed
fuddl opened this issue Sep 1, 2014 · 2 comments
Closed

how to change the destination filename extension in console #1645

fuddl opened this issue Sep 1, 2014 · 2 comments

Comments

@fuddl
Copy link

fuddl commented Sep 1, 2014

is there a way to change the default filename extension from .html to lets say .tpl.php?

@ForbesLindesay
Copy link
Member

At the moment, the easiest way is probably to use the JavaScript api and write a node.js script like:

var fs = require('fs');
var jade = require('jade');

fs.writeFileSync(__dirname + '/view.tpl.php', jade.renderFile(__dirname + '/view.jade'));

#1453 suggests adding an option to the command line, which sounds like a reasonable idea, but that hasn't been merged yet.

@fuddl
Copy link
Author

fuddl commented Sep 1, 2014

thank you. That sounds perfect

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

No branches or pull requests

2 participants