1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-27 18:12:44 +03:00

Remove ejs templates (#193)

All HTML will be rendered by PS (Smolder)
This commit is contained in:
Jens Krause 2017-08-27 21:30:28 +02:00
parent 4367331565
commit 9115a574a5
No known key found for this signature in database
GPG Key ID: 3B2FAFBCEFA5906D
5 changed files with 1 additions and 21 deletions

View File

@ -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",

View File

@ -1,2 +0,0 @@
</body>
</html>

View File

@ -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>

View File

@ -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 %>

View File

@ -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"