ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Weex​Template

by devilthrone ST2/ST3

Create Weex(.we or .vue) File Conveniently Form Weex Template for SublimeText

Details

Installs

  • Total 826
  • Win 431
  • OS X 363
  • Linux 32
May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12
Windows 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
OS X 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 0
Linux 0 0 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 1 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 file File - New File (Weex)-Weex(.vue) : create a .vue file

  • Create 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 )