xplat icon indicating copy to clipboard operation
xplat copied to clipboard

AMP web version

Open NathanWalker opened this issue 7 years ago • 1 comments

From @goelinsights on April 23, 2018 19:13

Trying to understand the docs. Sounds like if it needs different HTML templates, then it would go under a xplat category rather than an app?

Therefore would we need to create an xplat/amp directory? Sounds like that will be the structure for the upcoming ssr?

Copied from original issue: nstudio/xplat-issues#2

NathanWalker avatar Jul 22 '18 22:07 NathanWalker

Good question @goelinsights - You can place platform specific templates in your app or inside the appropriate xplat/[platform] directory. Creating a component template inside xplat/[platform] largely depends on whether you intend to use that view across several different app targets. Oftentimes I may build it xplat/[platform] for the scalability if I foresee a need for that view in another accompanying app.

xplat/ssr is planned and will be the place for Universal and Amp powered setups you are correct.

We are currently working through a few details around the ssr integration to ensure it's clear enough for an upcoming release.

NathanWalker avatar Jul 22 '18 22:07 NathanWalker