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

  • 2018.02.10.16.46.48
  • github.​com
  • github.​com
  • 8 months ago
  • 54 minutes ago
  • 5 years ago

Installs

  • Total 84K
  • Win 46K
  • OS X 26K
  • Linux 12K
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 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12
Windows 1 36 22 16 15 28 35 22 19 22 17 27 28 22 28 25 31 17 21 20 29 32 26 27 16 21 27 17 16 25 28 13 24 14 28 13 28 20 21 22 19 30 28 23 22 12
OS X 0 9 7 5 27 11 9 9 13 17 9 31 6 13 7 11 17 10 10 6 13 6 11 5 7 5 11 10 11 12 4 7 10 12 12 7 8 12 8 7 5 7 15 13 8 3
Linux 0 9 3 2 3 4 5 7 8 5 4 4 7 6 4 4 3 4 2 4 8 9 10 1 2 3 5 9 6 8 5 2 6 5 1 3 6 9 4 3 6 7 5 3 6 6

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 saved 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.