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

HTML Boilerplate

by sloria ST2/ST3

Sublime Text 2/3 snippet to generate HTML5 boilerplate

Details

  • 2016.08.03.13.08.00
  • github.​com
  • github.​com
  • 12 months ago
  • 38 minutes ago
  • 4 years ago

Installs

  • Total 68K
  • Win 36K
  • OS X 22K
  • Linux 10K
Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9
Windows 0 29 25 34 31 67 48 43 24 27 35 60 54 43 34 23 25 29 50 36 39 33 15 27 28 26 31 23 37 24 26 22 40 21 32 50 34 17 27 37 35 23 47 33 24 32
OS X 0 5 7 12 16 23 15 16 13 7 16 13 13 14 17 7 11 15 14 21 13 23 13 7 21 18 18 26 22 12 11 9 20 16 19 13 6 9 17 22 18 14 9 9 10 20
Linux 1 5 6 6 6 7 5 13 7 6 10 10 13 7 11 7 7 12 12 4 5 6 7 5 10 10 10 7 8 5 4 9 7 8 9 4 11 4 10 10 9 4 7 8 6 11

Readme

Source
raw.​githubusercontent.​com

Sublime HTML5 Boilerplate

A Sublime Text 2/3 snippet to generate the HTML5 Boilerplate (v5.3.0) template.

Install

Option 1: Manual

Copy the files to your Packages directory.

Option 2: Package Control

In the command pallette (Cmd-Shift+P on Mac) type 'Install' then press enter to see a list of packages. Search for 'HTML Boilerplate' then press enter to install.

Usage

With a blank HTML file open, type

htmlboiler

and press TAB.

That generates:

<!doctype html>
<html class="no-js" lang="">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>${1}</title>
    <meta name="description" content="${2}">
    <meta name="viewport" content="width=device-width, initial-scale=1">


    <link rel="apple-touch-icon" href="apple-touch-icon.png">

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>

</head>
<body>



    <p>Hello world! This is HTML5 Boilerplate.</p>

    <script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
    <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.12.4.min.js"><\/script>')</script>


    <script>
        window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
        ga('create','UA-XXXXX-Y','auto');ga('send','pageview')
    </script>
    <script src="https://www.google-analytics.com/analytics.js" async defer></script>
</body>
</html>

License

MIT Licensed.