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

Disabling Javascript? #321

Open
martindale opened this issue Feb 14, 2014 · 4 comments
Open

Disabling Javascript? #321

martindale opened this issue Feb 14, 2014 · 4 comments

Comments

@martindale
Copy link
Contributor

I'd like to be able to take an HTML snapshot of an Insight page at a point in time, programmatically, but I don't have access to executing Javascript.

Can we use HTTP content negotiation to render HTML using the same templates and data on the serverside for the first pageload, then when and if Javascript takes over, it starts live updating / using JSON?

@matiu
Copy link
Collaborator

matiu commented Feb 14, 2014

I don't think it is possible since it is using Angular. To do that we
should have especial rendering engine on the server side, I guess. Maybe
there is something already done for that in Angular.

On Fri, Feb 14, 2014 at 4:01 PM, Eric Martindale
notifications@github.comwrote:

I'd like to be able to take an HTML snapshot of an Insight page at a point
in time, programmatically, but I don't have access to executing Javascript.

Can we use HTTP content negotiation to render HTML using the same
templates and data on the serverside for the first pageload, then when
and if Javascript takes over, it starts live updating / using JSON?


Reply to this email directly or view it on GitHubhttps://github.com//issues/321
.

Matías Alejo Garcia
Skype/Twitter: @EMATIU
Roads? Where we're going, we don't need roads!

@martindale
Copy link
Contributor Author

It should definitely be possible; we can just run the same rendering language on the serverside and pass it the same data. The only question should be setting up content-negotiation and routing. See this example for content negotiation...

@maraoz
Copy link
Contributor

maraoz commented Feb 14, 2014

That sounds like a big change, can we leave it for after the release?

On Fri, Feb 14, 2014 at 4:28 PM, Eric Martindale
notifications@github.comwrote:

It should definitely be possible; we can just run the same rendering
language on the serverside and pass it the same data. The only question
should be setting up content-negotiation and routing. See this examplehttps://github.com/martindale/maki/blob/master/maki.js#L54for content negotiation...

Reply to this email directly or view it on GitHubhttps://github.com//issues/321#issuecomment-35116143
.

@martindale
Copy link
Contributor Author

Definitely intended to be a post-release enhancement.

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

3 participants