mozilla
Your Search Results

    Template:DemoStudioTagThumbs

    <%
    // TODO: [Fix JSON feed in Demo Studio](https://bugzilla.mozilla.org/show_bug.cgi?id=780927)
    var tag = $0;
    var p = kuma.url.parse(env.url, true);
    var url = p.protocol + '//' + p.host + '/' + env.locale +
              '/demos/feeds/json/tag/' + encodeURIComponent(tag);
    var demos = mdn.fetchJSONResource(url, 600);
    %>
    <h3>Demos tagged <a href="<%= url %>"><%= tag %></a></h3>
    <% if (!demos) { %>
        <p>No submissions found.</p>
    <% } else { %>
        <ul>
            <% for (var i=0,demo; demo=demos[i]; i++) { %>
                <li><a href="<%= demo.link %>">
                    <%= demo.title %>
                    <br />
                    <img src="<%= demo.thumbnail %>" alt="<%= demo.title %>" />
                </a></li>
            <% } %>
        </ul>
    <% } %>
    Search for pages that use Template:DemoStudioTagThumbs to see example use cases and how many pages use this macro.

    Document Tags and Contributors

    Tags: 
    Contributors to this page: lmorchard, ethertank
    Last updated by: ethertank,