mirror of
https://github.com/aelve/guide.git
synced 2024-11-27 18:12:44 +03:00
parent
4367331565
commit
9115a574a5
@ -35,7 +35,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"create-react-class": "^15.6.0",
|
||||
"ejs": "^2.5.7",
|
||||
"es6-promise": "^4.1.1",
|
||||
"express": "^4.15.4",
|
||||
"preact": "^8.2.4",
|
||||
|
@ -1,2 +0,0 @@
|
||||
</body>
|
||||
</html>
|
@ -1,8 +0,0 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><%=title%></title>
|
||||
<!-- TODO (sectore) create and add css file -->
|
||||
<!-- <link href="/<%=contentId%>.css" rel="stylesheet"> -->
|
||||
</head>
|
||||
<body>
|
@ -1,6 +0,0 @@
|
||||
<% include header %>
|
||||
|
||||
<h1>name: <%=catName%> id: <%=catDetailId%> </h1>
|
||||
<div id="guide"></div>
|
||||
<script type="text/javascript" src="/<%=contentId%>.js"></script>
|
||||
<% include footer %>
|
@ -9,7 +9,7 @@ import Data.Int (fromString)
|
||||
import Data.Maybe (fromMaybe)
|
||||
import Guide.CategoryDetail.Events (AppEffects)
|
||||
import Guide.Server.Handler (categoryDetailHandler, categoryOverviewHandler, indexHandler, errorHandler)
|
||||
import Node.Express.App (App, get, listenHttp, setProp, use, useOnError)
|
||||
import Node.Express.App (App, get, listenHttp, use, useOnError)
|
||||
import Node.Express.Handler (Handler, next)
|
||||
import Node.Express.Middleware.Static (static)
|
||||
import Node.Express.Request (getOriginalUrl)
|
||||
@ -28,9 +28,6 @@ appSetup :: forall e. App (CoreEffects (AppEffects (console :: CONSOLE | e)))
|
||||
appSetup = do
|
||||
liftEff $ log "app setup"
|
||||
|
||||
setProp "view engine" "ejs"
|
||||
setProp "views" "public/views"
|
||||
|
||||
use logger
|
||||
use $ static "public"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user