Skip to content

Instantly share code, notes, and snippets.

michaelwomple

Block or report user

Report or block michaelwomple

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@michaelwomple
michaelwomple / foster-parent-noDisplay-example
Last active May 2, 2018
An example of how to get around displaying erroneous html in AMP Templates.
View foster-parent-noDisplay-example
CSS :
<style>
.noDisplay : { display: none; }
</style>
JSON :
{
"items": [{
{
"priceType:"",
@michaelwomple
michaelwomple / foster-parenting-example
Last active May 2, 2018
An example of foster parenting in AMP List.
View foster-parenting-example
JSON:
{
"items": [{
"prices": [
{
"priceType":"Cash",
"price": "1.99",
},
{
"priceType":"Card",
@michaelwomple
michaelwomple / sample-amp-template-after-foster-parenting.html
Last active May 2, 2018
An example of how an AMP Template works after foster parenting.
View sample-amp-template-after-foster-parenting.html
<template type="amp-mustache">
{{#prices}}
{{/prices}}
<table>
<tr>
<td>{{priceType}}:</td>
<td>$ {{price}}</td>
</tr>
</table>
@michaelwomple
michaelwomple / sample-amp-template-before-foster-parenting.html
Last active May 2, 2018
An example of an AMP Template before foster parenting.
View sample-amp-template-before-foster-parenting.html
<template type="amp-mustache">
<table>
{{#prices}}
<tr>
<td>{{priceType}}:</td>
<td>$ {{price}}</td>
</tr>
{{/prices}}
</table>
</template>
@michaelwomple
michaelwomple / foster-parent-post-render.html
Created Apr 25, 2018
The resulting html from our example html due to foster parenting in a table.
View foster-parent-post-render.html
<b></b>
<b>bbb</b>
<table>
<tbody>
<tr>
<td>aaa</td>
</tr>
</tbody>
</table>
<b>ccc</b>
@michaelwomple
michaelwomple / foster-parent-html.html
Created Apr 25, 2018
Example html of foster parenting in a table. HTML.
View foster-parent-html.html
<table><b><tr><td>aaa</td></tr>bbb</table>ccc
You can’t perform that action at this time.