* @return {string}
()
| 758 | * @return {string} |
| 759 | */ |
| 760 | function getLiveBlogItemWithBindAttributes() { |
| 761 | const now = Date.now(); |
| 762 | // Generate a 3 to 7 worded headline |
| 763 | const numOfParagraphs = range(1, 2); |
| 764 | const body = Array.apply(null, new Array(numOfParagraphs)) |
| 765 | .map(() => { |
| 766 | return `<p>${bacon(range(50, 90))}</p>`; |
| 767 | }) |
| 768 | .join('\n'); |
| 769 | |
| 770 | return `<!doctype html> |
| 771 | <html amp><body> |
| 772 | <amp-live-list id="live-blog-1"> |
| 773 | <div items> |
| 774 | <div id="live-blog-item-${now}" data-sort-time="${now}"> |
| 775 | <div class="article-body"> |
| 776 | ${body} |
| 777 | <p> As you can see, bacon is far superior to |
| 778 | <b><span [text]='favoriteFood'>everything!</span></b>!</p> |
| 779 | </div> |
| 780 | </div> |
| 781 | </div> |
| 782 | </amp-live-list></body></html>`; |
| 783 | } |
| 784 | |
| 785 | app.use( |
| 786 | '/examples/live-blog(-non-floating-button)?.amp.html', |