Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
Web Compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hypha
Tools
Web Compiler
Commits
09430d3b
Verified
Commit
09430d3b
authored
Mar 03, 2019
by
Aral Balkan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable server-side rendering of choo js
parent
d0f3066f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
256 additions
and
263 deletions
+256
-263
ssr/index.js
ssr/index.js
+1
-8
test/document.js
test/document.js
+255
-255
No files found.
ssr/index.js
View file @
09430d3b
...
...
@@ -34,14 +34,7 @@ module.exports = class ServerRender {
}
render
(
route
,
done
)
{
var
self
=
this
if
(
this
.
appType
===
'
choo
'
)
choo
.
render
(
this
.
app
,
route
,
send
)
else
done
(
null
,
Object
.
assign
({
route
:
route
},
this
.
DEFAULT_RESPONSE
))
function
send
(
err
,
res
)
{
if
(
err
)
return
done
(
err
)
done
(
null
,
Object
.
assign
({
route
:
route
},
self
.
DEFAULT_RESPONSE
,
res
))
}
done
(
null
,
Object
.
assign
({
route
:
route
},
this
.
DEFAULT_RESPONSE
))
}
close
()
{
...
...
test/document.js
View file @
09430d3b
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment