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

Custom file extensions #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xificurk
Copy link

@xificurk xificurk commented Sep 2, 2017

Hi, I really like this plugin, but I needed support for templates with other extensions than php, just like in standard File Templates. So here is PR for such a functionality.

There are many instances when this might come in handy, in my case I wanted to define a test case template for nette/tester that by convention uses phpt extension.

What this PR does:

  • You can define File Template with extension class.*.
  • When you select a template in PHP Class From Template dialog, the selected file extension is automatically changed based on the extension of the selected File Template, e.g. class.php -> php, class.phpt -> phpt.
  • The change of file extension in PHP Class From Template dialog does not interfere with standard PHP Class dialog.

@aurimasniekis
Copy link
Owner

Thank you for your pull request, before I could merge could you merge your commits into single one?

@xificurk
Copy link
Author

xificurk commented Sep 8, 2017

done

@xificurk
Copy link
Author

@aurimasniekis ping

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

Successfully merging this pull request may close these issues.

2 participants