Skip to content

silk-web-toolkit/SILK-snippets

Repository files navigation

SILK SUBLIME TEXT 2 SNIPPETS

About

A collection of Silk snippets for Sublime Text 2.

Install

Just grab the download, or clone, then put the snippets in your 'packages/User' directory.

Alternatively use Package Control.

Usage

Type the snippet tabTrigger/shortcode to complete the snippet.

The snippets are listed below in no particular order. The '$1' indicates first editable section of the snippet. Some snippets have been set up so that pressing Tab jumps the caret to the next predefined editable section.

If you want to contribute just fork this repository and submit a pull request, or fire your idea over to our mailing list. The more generic and reusable your contributions/ideas the better.

Silk Component

skc

<div id="silk-component:${1}">${2}</div>

Silk View

skv

<html>
  <body>
    ${1}
  </body>
</html>

Silk Template

skt

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>${1}</title>
  </head>

  <body>

    <!-- some header / nav placeholder -->

    <div id="silk-view">
      <!-- Silk view content goes here -->
    </div>

    <!-- some footer placeholder -->
  </body>
</html>

About

A set of Silk snippets for Sublime Text 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published