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

  • 2017.11.03.14.30.47
  • github.​com
  • github.​com
  • 1 month ago
  • 2 hours ago
  • 4 years ago

Installs

  • Total 74K
  • Win 40K
  • OS X 24K
  • Linux 11K
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 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1
Windows 20 33 30 30 30 32 12 33 27 34 29 34 28 21 20 43 43 32 25 32 26 27 28 27 26 23 25 18 20 33 25 28 28 26 30 19 24 32 29 36 38 20 20 19 29 33
OS X 9 18 14 14 14 14 9 6 9 19 16 14 33 8 6 10 21 29 10 31 8 9 20 8 13 14 11 8 9 12 12 17 20 15 15 10 28 21 16 14 12 8 11 15 15 16
Linux 2 8 6 9 1 8 7 6 9 7 5 7 7 8 8 7 6 11 7 5 4 7 12 11 11 10 6 5 4 15 5 4 9 10 6 12 7 7 7 8 7 6 7 8 9 5

Readme

Source
raw.​githubusercontent.​com

Sublime HTML5 Boilerplate

A Sublime Text 2/3 snippet to generate the HTML5 Boilerplate (v6.0.1) 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="manifest" href="site.webmanifest">
    <link rel="apple-touch-icon" href="icon.png">


    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/main.css">
</head> 
<body>



    <p>Hello world! This is HTML5 Boilerplate.</p>
    <script src="js/vendor/modernizr-3.5.0.min.js"></script>
    <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
    <script>window.jQuery || document.write('<script src="js/vendor/jquery-3.2.1.min.js"><\/script>')</script>
    <script src="js/plugins.js"></script>
    <script src="js/main.js"></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.