WeexTemplate
Create Weex(.we or .vue) File Conveniently Form Weex Template for SublimeText
Details
Installs
- Total 1K
- Win 541
- Mac 433
- Linux 48
Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
WeexTemplate
Create Weex(.we or .vue) File Conveniently Form Weex Template for SublimeText
Feature
- Support Vue Syntax Highlight
- Support Create File form Menu
- Support Create File form SideMenu
- Support Customize shortcut key
- Support Customize weex templte
Installation
Github
clone this repository:
$ git clone https://github.com/devilthrone/WeexTemplate.git
On the Sublime Text Menu, Go to
Preferences
/Browse Packages
, open the “Packages” directory.Copy the project cloned form github onto “Packages” directory, and rename to “WeexTemplate”
Usage
Create a weex file with Menu or SideMenu
File - New File (Weex)-Weex(.we)
: create a .we fileFile - New File (Weex)-Weex(.vue)
: create a .vue fileCreate a weex file with shortcut key
MacOs platform: command+ctrl+w create .we file command+ctrl+e create .vue file Window platform: ctrl+alt+w create .we file ctrl+alt+e create .vue file
Customize shortcut key
you can modify the shortcut key by
Preferences - Package Settings - Weex - Key Bindings(User)
for example:
--------------------
[
{
"keys": ["shift+command+w"], "command": "weex_template",
"args": {"type": "weex"}, "context": [{"key": "weex_template.weex"}]
},
{
"keys": ["shift+command+e"], "command": "weex_template",
"args": {"type": "vue"}, "context": [{"key": "weex_template.vue"}]
}
]
- Customize weex template
Default template files in : Packages/WeexTemplate/templates/vue.tmpl, you can customize the weex template file:
Packages/User/WeexTemplate/templates/vue.tmpl
(create directory if not exist )