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

Weex​Template

by devilthrone ALL

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

Details

Installs

  • Total 1K
  • Win 540
  • Mac 432
  • Linux 48
Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7
Windows 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 1 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 1 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 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 )