Skip to content
Myr

Added client-side data exposing example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent de6f300 · Browse files · 2 files+82 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+82 added−0 removed

  • other:+82 added−0 removed

2 files+82 added−0 removed

added:examples/expose-data-to-client/views/page.jade+14 added
1html2 head3 title Express4 script5 // call this whatever you like,6 // or dump them into individual7 // props like "var user ="8 var data = !{JSON.stringify(expose)}9 body10 h1 Expose client data11 p The following was exposed to the client:12 pre13 script14 document.write(JSON.stringify(data, null, 2))
added:examples/expose-data-to-client/index.js+68 added