@amplience/dynamic-content-accelerators
Version:
Amplience DC Frontend modules, using HTML Service
55 lines (42 loc) • 1.34 kB
HTML
{{#if (test this.[ ] (toRegex ".*/text")) ~}}
{{> acc-template-text }}
{{~/if}}
{{#if (test this.[ ] (toRegex ".*/video")) ~}}
{{> acc-card-template-video }}
{{~/if}}
{{#if (test this.[ ] (toRegex ".*/promolist")) ~}}
{{> acc-template-promoList }}
{{~/if}}
{{#if (test this.[ ] (toRegex ".*/promo.json")) ~}}
{{> acc-template-promo }}
{{~/if}}
{{#if (test this.[ ] (toRegex ".*/splitblock")) ~}}
{{> acc-card-template-splitBlock }}
{{~/if}}
{{#if (test this.[ ] (toRegex ".*/slider")) ~}}
{{> acc-card-template-slider }}
{{~/if}}
{{#if (test this.[ ] (toRegex ".*/image")) ~}}
{{> acc-card-template-image this}}
{{~/if}}
{{#if (test this.[0].[ ] (toRegex ".*/image")) ~}}
{{> acc-card-template-image this.[0]}}
{{~/if}}
{{#if (test this.[ ] (toRegex ".*/externalblock")) ~}}
{{> acc-template-externalBlock }}
{{~/if}}
{{#if (test this.[ ] (toRegex ".*/cardlist")) ~}}
{{> acc-card-template-cardList }}
{{~/if}}
{{#if (test this.[ ] (toRegex ".*/card.json")) ~}}
{{> acc-card-template-card }}
{{~/if}}
{{#if (test this.[ ] (toRegex ".*/blogpost")) ~}}
{{> acc-card-template-blogPost }}
{{~/if}}
{{#if (test this.[ ] (toRegex ".*/banner")) ~}}
{{> acc-card-template-banner }}
{{~/if}}
{{#if (test this.[ ] (toRegex ".*/page")) ~}}
{{> acc-card-template-page }}
{{~/if}}