// routes/index.js const express = require('express'); const router = express.Router(); var vdict = require('../config'); const utility = require('../utility'); router.use(function(req, res, next){ vdict.khDate = utility.toKhDate(new Date()); next(); }); router.get('/', function(req, res, next) { res.render('index', vdict); }); module.exports = router; <!--views/index.ejs--> <%- include('partials/head') %> <%- include('partials/facebookapi') %> <%- include('partials/header') %> <link rel='stylesheet' href='/stylesheets/index.css' /> <script src='/javascripts/utility.js'></script> <section id="panel"></section> <section id="main"></section> <%- include('partials/footer.ejs') %> <!--views/partials/header.ejs--> <section id="header">...
Comments
Post a Comment