WeexTemplate
Create Weex(.we or .vue) File Conveniently Form Weex Template for SublimeText
Details
Installs
- Total 1K
- Win 542
- Mac 433
- Linux 48
Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 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 )