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

templatejs

by yanhaijing ST3

Syntax highlight for template.js

Details

Installs

  • Total 279
  • Win 179
  • Mac 52
  • Linux 48
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 Feb 17
Windows 0 0 0 1 1 0 0 0 1 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
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

template-sublime

template.js plugin for sublime, click here to install.

How to install

Way 1: with Package Control

  1. Run “Package Control: Install Package” command, find and install templatejs plugin.

Way 2: with Package Control + Custom Repository:

  1. Run “Package Control: Add repository” and add https://github.com/yanhaijing/template-sublime
  2. Run “Package Control: Install Package” command, find and install templatejs plugin.

Way 3: download and copy

  1. Clone or [download] git repo into your packages folder (in ST2, find Browse Packages… menu item to open this folder)

Features

  • Syntax highlight

Support syntax highlight for template.js

Source code example

<h2>我的待办</h2>
<ul>
    <%list.forEach(function(item, index) {%>
        <li>
            <div class="row">
                <div class="col-5 <%=index % 2 ? 'text-secondary' : ''%>">
                    <%=item.text%>
                    <%:=item.text%>
                    <%abc:=item.text%>
                </div>
            </div>
        </li>
    <%})%>
</ul>
<a href="#" class="btn btn-dark add-todo">新增</a>

Highlighting effect

CHANGELOG

CHANGELOG.md

TODO

TODO.md

Contributor guide

开发时,将当前项目软连接到sublime的插件目录(菜单/Preference/Browse Packages)即可实时预览,可能需要重启

ln -s . xxx/Packages/User

发布时需要打tag,然后push到github即可

git tag x.y.z

Reference