├── .editorconfig ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── gulpfile.js ├── package.json └── snippets └── html-head-snippets.cson /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # editorconfig.org 4 | 5 | root = true 6 | 7 | [*] 8 | end_of_line = lf 9 | charset = utf-8 10 | trim_trailing_whitespace = true 11 | insert_final_newline = true 12 | indent_style = space 13 | indent_size = 2 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | npm-debug.log 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.12 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Josh Buchea 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HTML Head Snippets 2 | 3 | [![Build Status](https://travis-ci.org/joshbuchea/atom-html-head-snippets.svg?branch=master)](https://travis-ci.org/joshbuchea/atom-html-head-snippets) 4 | 5 | HTML `` snippets for [Atom](https://atom.io/); from the project [HEAD](https://github.com/joshbuchea/HEAD). 6 | 7 | ## Installation 8 | 9 | ```sh 10 | apm install html-head-snippets 11 | ``` 12 | 13 | ## Usage 14 | 15 | - `head-360` ⇥ 16 | - `head-android` ⇥ 17 | - `head-applinks` ⇥ 18 | - `head-chrome` ⇥ 19 | - `head-fav` ⇥ 20 | - `head-fbia` ⇥ 21 | - `head-fbog` ⇥ 22 | - `head-gplus` ⇥ 23 | - `head-ie` ⇥ 24 | - `head-ios` ⇥ 25 | - `head-min` ⇥ 26 | - `head-oembed` ⇥ 27 | - `head-qq` ⇥ 28 | - `head-safari` ⇥ 29 | - `head-twitter` ⇥ 30 | - `head-uc` ⇥ 31 | 32 | ## Author 33 | 34 | **[Josh Buchea](http://joshbuchea.com/)** 35 | 36 | ## License 37 | 38 | [MIT License](LICENSE) 39 | -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- 1 | var gulp = require('gulp'), 2 | lintspaces = require('gulp-lintspaces'); 3 | 4 | gulp.task('lintspaces', function() { 5 | return gulp.src(['**/*', '!node_modules/**/*']) 6 | .pipe(lintspaces({ 7 | editorconfig: '.editorconfig' 8 | })) 9 | .pipe(lintspaces.reporter()); 10 | }); 11 | 12 | gulp.task('default', ['lintspaces']); 13 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "html-head-snippets", 3 | "version": "0.2.0", 4 | "description": "HTML snippets for Atom", 5 | "repository": "https://github.com/joshbuchea/atom-html-head-snippets", 6 | "license": "MIT", 7 | "engines": { 8 | "atom": ">=1.0.0 <2.0.0" 9 | }, 10 | "scripts": { 11 | "test": "gulp" 12 | }, 13 | "keywords": [ 14 | "html", 15 | "html5", 16 | "head", 17 | "meta", 18 | "snippets" 19 | ], 20 | "dependencies": {}, 21 | "devDependencies": { 22 | "gulp": "^3.9.1", 23 | "gulp-lintspaces": "^0.4.1" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /snippets/html-head-snippets.cson: -------------------------------------------------------------------------------- 1 | ".text.html.basic, .text.html.php": 2 | 3 | 'HEAD 360 Browser': 4 | 'prefix': 'head-360' 5 | 'body': """ 6 | 7 | 8 | """ 9 | 10 | 'HEAD App Links': 11 | 'prefix': 'head-applinks' 12 | 'body': """ 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | """ 25 | 26 | 'HEAD Android': 27 | 'prefix': 'head-android' 28 | 'body': """ 29 | 30 | 31 | 32 | 33 | 34 | """ 35 | 36 | 'HEAD Chrome': 37 | 'prefix': 'head-chrome' 38 | 'body': """ 39 | 40 | 41 | 42 | 43 | """ 44 | 45 | 'HEAD Favicon': 46 | 'prefix': 'head-fav' 47 | 'body': """ 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | """ 58 | 59 | 'HEAD FB IA': 60 | 'prefix': 'head-fbia' 61 | 'body': """ 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | """ 71 | 72 | 'HEAD FB/OG': 73 | 'prefix': 'head-fbog' 74 | 'body': """ 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | """ 87 | 88 | 'HEAD Google+': 89 | 'prefix': 'head-gplus' 90 | 'body': """ 91 | 92 | 93 | 94 | 95 | """ 96 | 97 | 'HEAD IE': 98 | 'prefix': 'head-ie' 99 | 'body': """ 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | """ 129 | 130 | 'HEAD iOS': 131 | 'prefix': 'head-ios' 132 | 'body': """ 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | """ 155 | 156 | 'HEAD Minimum': 157 | 'prefix': 'head-min' 158 | 'body': """ 159 | 160 | 161 | 162 | 163 | ${3:Page Title} 164 | """ 165 | 166 | 'HEAD oEmbed': 167 | 'prefix': 'head-oembed' 168 | 'body': """ 169 | 172 | 175 | """ 176 | 177 | 'HEAD QQ Browser': 178 | 'prefix': 'head-qq' 179 | 'body': """ 180 | 181 | 182 | 183 | 184 | 185 | 186 | """ 187 | 188 | 'HEAD Safari': 189 | 'prefix': 'head-safari' 190 | 'body': """ 191 | 192 | 193 | """ 194 | 195 | 'HEAD Twitter': 196 | 'prefix': 'head-twitter' 197 | 'body': """ 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | """ 208 | 209 | 'HEAD UC Browser': 210 | 'prefix': 'head-uc' 211 | 'body': """ 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | """ 227 | --------------------------------------------------------------------------------