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

templatejs

by yanhaijing ST3

Syntax highlight for template.js

Details

Installs

  • Total 39
  • Win 24
  • Mac 10
  • Linux 5
Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7
Windows 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 3 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 1 0 1 0 3 1 0 1
Mac 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 2 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 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 2 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