Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easier to view template URLs "directly" #798

Open
ithinkihaveacat opened this issue Jan 25, 2018 · 2 comments
Open

Make it easier to view template URLs "directly" #798

ithinkihaveacat opened this issue Jan 25, 2018 · 2 comments

Comments

@ithinkihaveacat
Copy link
Contributor

It's not easy to view a raw template directly. i.e. to view/discover URLs like:

https://ampstart-iframes.firebaseapp.com/templates/travel/travel.amp#amp=1

It would be useful to expose these URLs in some way to make it easier to:

  • Link directly to these templates. (I don't think this is possible right now--without looking at the source, you can only link to a category like "Art & Design".)
  • Quickly see how the template looks at screen sizes other than the preset ones.
  • View the source via devtools or similar to see how a particular feature is implemented. (This is possible now, but since the resource is iframed it can be difficult to find.)

Suggestion: add a button next to "Download" that opens the template in a new window.

wird5udsk11

@camelburrito
Copy link
Collaborator

it should really be https://ampstart.com/templates/travel/travel.amp.html , the iframes url is to workaround same origin difficulties in the preview iframes

@sebastianbenz
Copy link
Collaborator

@pbakaus @matthiasrohmer we should keep this in mind for amp.dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants