Skip to content

Instantly share code, notes, and snippets.

@Pyrolistical
Created May 16, 2016 08:18
Show Gist options
  • Select an option

  • Save Pyrolistical/fea929c87300dd91f0896da3f31ed853 to your computer and use it in GitHub Desktop.

Select an option

Save Pyrolistical/fea929c87300dd91f0896da3f31ed853 to your computer and use it in GitHub Desktop.
abandoning prerender
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Battlefy</title>
</head>
<body>
<div id="react-entry">
</div>
<script type="text/javascript" src="bundle.js" charset="utf-8"></script>
</body>
</html>
https://github.com/flatiron/plates
return res.status(200).send(Plates.bind(html, {
'react-entry': `
<img src="https://battlefy-assets.s3.amazonaws.com/helix/images/games/call-of-duty-black-ops-iii/background.jpg" />
<p>
RandomCS
Game &amp; Platform
Call of Duty: Black Ops III
Xbox One
Date &amp; Time
Friday, June 3rd 2016
7:00 PM CDT
Format
2v2
Team Registration is allowed
</p>
`
}));
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Battlefy - XB1 Black Ops III 2v2 #17 | Cash Prize | Free Entry</title>
</head>
<body>
<div id="react-entry">
<img src="https://battlefy-assets.s3.amazonaws.com/helix/images/games/call-of-duty-black-ops-iii/background.jpg" />
<p>
RandomCS
Game &amp; Platform
Call of Duty: Black Ops III
Xbox One
Date &amp; Time
Friday, June 3rd 2016
7:00 PM CDT
Format
2v2
Team Registration is allowed
</p>
</div>
<script type="text/javascript" src="bundle.js" charset="utf-8"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment