|
1 | 1 | <idea-plugin> |
2 | 2 | <id>com.dengzii.plugin.template</id> |
3 | 3 | <name>Generate Module From Template</name> |
4 | | - <version>1.4.0</version> |
| 4 | + <version>1.5.0</version> |
5 | 5 | < vendor email= "[email protected]" url= "https://github.com/dengzii">dengzi</ vendor> |
6 | 6 |
|
7 | 7 | <description><![CDATA[ |
8 | | -
|
9 | 8 | <b>Create a directory structure from a highly customizable template</b><br> |
10 | 9 | <br> |
11 | | -Using this plugin, help you create directories and files from customizable template<br> |
| 10 | +Using this plugin, help you create directories and files from the customizable template<br> |
12 | 11 | <br> |
13 | 12 | <b>Feature</b><br> |
14 | | -1. custom directory structure<br> |
15 | | -2. support placeholders, and replace it when you create module.<br> |
16 | | -3. create file from template<br> |
17 | | -4. support file template variables<br> |
18 | | -
|
| 13 | +1. Custom directory structure.<br> |
| 14 | +2. Support placeholders, and replace it when you create a module.<br> |
| 15 | +3. Specify file templates from IDE custom/build-in templates.<br> |
| 16 | +4. Passing placeholders to file template as variables.<br> |
| 17 | +5. Output/import template file. share your template with your partner.<br> |
| 18 | +<br> |
19 | 19 | <b>Usage</b><br> |
20 | | -1. Configure template in plugin settings: <b>File > Settings > Tools > Module Template Settings</b><br> |
| 20 | +1. Configure template in plugin settings: <b>File > Settings > Tools > Module Template Settings</b>.<br> |
21 | 21 | 2. Create directories from the 'Structure' tab, click the right mouse button to operate the file tree.<br> |
22 | 22 | 3. FileTree can use placeholders, the placeholder should like this -> <b>${YOUR_PLACEHOLDER_HERE}</b>.<br> |
23 | 23 | 4. The 'File Template' tab lists which template the specified file uses, you can also use placeholders for FileName field.<br> |
24 | 24 | 5. The 'Placeholder' tab's table defines placeholders for replacing filenames and file templates<br> |
25 | | -
|
| 25 | +More information: <a href='https://github.com/dengzii/GenerateModuleFromTemplate/blob/master/README.md'>README</a><br> |
| 26 | +<br> |
| 27 | +<b>NOTE</b><br> |
| 28 | +- The existing files will be skipped. <br> |
| 29 | +- The Java class file name may depends on ClassName, you better keep the class name and file name consistent, else the file name in the template will not effective.<br> |
| 30 | +- The placeholders are best not the same as the built-in property of `Apache Velocity`.<br> |
| 31 | +- The dot(.) in the directory name will split and expand as several directories.<br> |
26 | 32 | <br> |
27 | 33 | <b>Contribute</b><br> |
28 | 34 | <a href='https://github.com/dengzii/GenerateModuleFromTemplate'>GitHub</a><br> |
29 | 35 | Any question please <a href='https://github.com/dengzii/GenerateModuleFromTemplate/issues/new'>create issue</a><br> |
30 | 36 | <br> |
31 | | -
|
32 | 37 | <b>Screenshot</b><br> |
33 | 38 | <img src="https://raw.githubusercontent.com/dengzii/GenerateModuleFromTemplate/master/screenshot/settings.png" height="360"> |
34 | 39 | <img src="https://raw.githubusercontent.com/dengzii/GenerateModuleFromTemplate/master/screenshot/main.png" height="360"> |
35 | 40 | <img src="https://raw.githubusercontent.com/dengzii/GenerateModuleFromTemplate/master/screenshot/preview.png" height="360"> |
36 | | -
|
37 | 41 | <br> |
38 | 42 | ]]></description> |
39 | 43 |
|
40 | 44 | <change-notes><![CDATA[ |
41 | | - 1.4.0: feature: Support export and import template to file, adjust action button position<br> |
42 | | - 1.3.1: fix: AucFrame module template bugs<br> |
43 | | - 1.3: fix: Placeholder don't work when call FileTreeNode.include<br> |
44 | | - 1.2: feature: all IntelliJ platform IDEs support, file template selection support when edit module template.<br> |
45 | | - 1.1: feature: support create module template, placeholder, file template<br> |
46 | | - 1.0: basically feature, generate module directories from template<br> |
47 | | - ]]> |
| 45 | + <b>Version 1.5.0 (2020/12/3)</b><br> |
| 46 | + 0. Fix bug: specify template doesn't work.<br> |
| 47 | + 1. More feature: fetch template variables as placeholders when add a file, support specify file template when create the module.<br> |
| 48 | + 2. Update UI: looks more comfortable.<br> |
| 49 | +]]> |
48 | 50 | </change-notes> |
49 | 51 |
|
50 | 52 | <idea-version since-build="191.8026.42"/> |
|
0 commit comments