AMP Snippets
AMP (Active Mobile Pages) snippets for Sublime Text 2/3
Details
Installs
- Total 913
- Win 651
- Mac 187
- Linux 75
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 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
amp-snippets package
Snippets for creating AMP HTML (Active Mobile Pages).
Created by Nick Drewe and the team building wethrift.com and searchmy.bio.
Installation
Package Control (recommended)
The easiest way to install is by using Package Control. See installation docs.
- Open Package Control (or hit Ctrl + Shift + P or Cmd + Shift + P)
- Type install and hit enter
- Type AMP Snippets and hit enter again
Cloning the Repository
You can manually install the package by using Git.
- Navigate to Sublime’s Packages directory
- Run
git clone https://github.com/teamwethrift/amp-snippets.git
To find out where the Packages directory is, you can go to Preferences and Browse packages…. This will open the directory in your file explorer.
Quickstart
amp-html
provides the necessary boilerplate to get going with AMP.
The extended snippets require you to include a corresponding <script>
tag in the header. These snippets end with the -script
suffix. As an example, the mustache snippet (amp-mustache
) is used with the corresponding amp-mustache-script
snippet.
Snippets
Snippet | Description |
---|---|
amp-accordion | An accordion provides a way for viewers to glance at the content outline and jump to any section. |
amp-ad | A container to display an ad. |
amp-anim | A runtime-managed animated image, typically a GIF. |
amp-audio | A replacement for the HTML5 audio tag. |
amp-carousel | A generic carousel for displaying multiple similar pieces of content along a horizontal axis. |
amp-facebook | Displays a Facebook Post. |
amp-facebook-video | Displays a Facebook Video. |
amp-fit-text | Expands or shrinks its font size to fit the content within the space given to it. |
amp-html | Boilerplate for a basic AMP HTML page. |
amp-iframe | Displays an iframe. |
amp-image-lightbox | Allows for a “image lightbox”. |
amp-instagram | Displays an instagram embed. |
amp-install-serviceworker | Installs a ServiceWorker for the current page. |
amp-lightbox | Allows for a “lightbox” or similar experience where upon user interaction, a component expands to fill the viewport until it is closed again by the user. |
amp-list | Fetches dynamic content from a CORS JSON endpoint and renders it using a supplied template. |
amp-mustache | Allows rendering of Mustache.js. |
amp-pixel | The amp-pixel element is meant to be used as a typical tracking pixel - to count page views. |
amp-soundcloud | Displays a Soundcloud clip. |
amp-video | A replacement for the HTML5 video tag. |
amp-youtube | Displays a YouTube video. |