FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
esplora/render-view.js at master · Blockstream/esplora · GitHub
Blockstream
/
esplora
Public
Notifications
You must be signed in to change notification settings
Fork
516
Star
1.3k
Code
Issues
176
Pull requests
12
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
esplora
/
render-view.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (13 loc) · 444 Bytes
Breadcrumbs
esplora
/
render-view.js
Copy path
File metadata and controls
16 lines (13 loc) · 444 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
global
.
window
=
{
}
const
pug
=
require
(
'pug'
)
,
l10n
=
require
(
'./client/src/l10n'
)
.
default
,
state
=
JSON
.
parse
(
process
.
argv
[
2
]
)
,
view
=
require
(
'./client/src/views'
)
[
state
.
view
]
state
.
t
=
l10n
[
state
.
lang
||
'en'
]
state
.
page
=
{
pathname
:
''
,
query
:
{
}
}
require
(
'pug'
)
.
renderFile
(
'client/index.pug'
,
{
prerender_html
:
require
(
'snabbdom-to-html'
)
(
view
(
state
)
)
}
,
(
err
,
html
)
=>
{
if
(
err
)
throw
err
console
.
log
(
html
)
}
)
Back
|
FazBrowse Home
|
New Git URL