Sha256: 806379f40a5a3da157620705a7f0c84b74cc97e98c379e2369987676dec201cc

Contents?: true

Size: 1.2 KB

Versions: 12

Compression:

Stored size: 1.2 KB

Contents

# [Helpers](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs#amp-html-helpers) / `amp_fallback`


## Information

`amp_fallback` allows to create AMP-HTML fallbacks for any HTML or AMP tag.

---

### Quick info

#### Latest update: 0.5.0 (Pre-release) - 2017-03-18

[**Changelog for version 0.5.0**](https://github.com/slooob/amp-html/blob/master/CHANGELOG.md#050-pre-release---2017-03-18)

#### [DeepIntegration](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs#deepintegration-helpers): Disabled

#### [Availability](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs#availability-of-helpers): Build-in

#### [Takes a block?](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs#takes-a-block): Yes

---

## General

### Reference

<!-- [**AMP Reference**](https://www.ampproject.org/docs/reference/components/ads/amp-ad) -->

#### Required Parameters

* `name`

#### Structure

    <%= amp_fallback(name, options) %>
    # <name fallback></name>


## Examples

`amp_fallback` also takes a block:

    <%= amp_fallback("div", layout: "nodisplay") do %>
        <p>Hello AMP</p>
    <% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
amp-html-0.7.18 lib/amp-html/helpers/docs/amp_fallback.md
amp-html-0.7.17 lib/amp-html/helpers/docs/amp_fallback.md
amp-html-0.7.16 lib/amp-html/helpers/docs/amp_fallback.md
amp-html-0.7.15 lib/amp-html/helpers/docs/amp_fallback.md
amp-html-0.7.14 lib/amp-html/helpers/docs/amp_fallback.md
amp-html-0.7.13 lib/amp-html/helpers/docs/amp_fallback.md
amp-html-0.7.12 lib/amp-html/helpers/docs/amp_fallback.md
amp-html-0.7.11 lib/amp-html/helpers/docs/amp_fallback.md
amp-html-0.7.10 lib/amp_html/helpers/docs/amp_fallback.md
amp-html-0.7.9 lib/amp_html/helpers/docs/amp_fallback.md
amp-html-0.7.8 lib/amp_html/helpers/docs/amp_fallback.md
amp-html-0.7.7 lib/amp_html/helpers/docs/amp_fallback.md