[Groonga-commit] groonga/express-kotoumi [master] Switch template engine from ejs to jade

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jan 23 14:31:01 JST 2013


YUKI Hiroshi	2013-01-23 14:31:01 +0900 (Wed, 23 Jan 2013)

  New Revision: 20d375ec7b99f0d5372b99d1d7933fc61714b50b
  https://github.com/groonga/express-kotoumi/commit/20d375ec7b99f0d5372b99d1d7933fc61714b50b

  Log:
    Switch template engine from ejs to jade

  Added files:
    views/index.jade
  Removed files:
    views/index.ejs
  Modified files:
    lib/dashboard-adaptor.js
    package.json

  Modified: lib/dashboard-adaptor.js (+1 -1)
===================================================================
--- lib/dashboard-adaptor.js    2013-01-23 13:21:26 +0900 (9ed0b6a)
+++ lib/dashboard-adaptor.js    2013-01-23 14:31:01 +0900 (492707b)
@@ -10,7 +10,7 @@ exports.registerHandlers = function(application, params) {
 
   application.configure(function(){
     application.set('views', path.join(__dirname, '..', 'views'));
-    application.set('view engine', 'ejs');
+    application.set('view engine', 'jade');
     application.use(prefix, express.favicon());
     application.use(prefix, express.logger('dev'));
     application.use(prefix, express.bodyParser());

  Modified: package.json (+1 -2)
===================================================================
--- package.json    2013-01-23 13:21:26 +0900 (759991a)
+++ package.json    2013-01-23 14:31:01 +0900 (22cb52b)
@@ -14,8 +14,7 @@
     }
   ],
   "dependencies": {
-    "ejs": "*",
-    "express": ">=3.0",
+   "express": ">=3.0",
     "express-resource": "*",
     "fluent-logger": "*",
     "jade": "*",

  Deleted: views/index.ejs (+0 -14) 100644
===================================================================
--- views/index.ejs    2013-01-23 13:21:26 +0900 (9e3ddb3)
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html lang="ja">
-  <head>
-    <meta charset="UTF-8" />
-    <title><%= title ? title + ' - ' : '' %>Express Kotoumi Dashboard</title>
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <link href="<%= prefix %>/styles/override.css" rel="stylesheet" media="screen" />
-    <script type="text/javascript" src="<%= prefix %>/bootstrap/js/bootstrap.min.js"></script>
-  </head>
-  <body>
-    <p>Hello!</p>
-  </body>
-</html>
-

  Added: views/index.jade (+13 -0) 100644
===================================================================
--- /dev/null
+++ views/index.jade    2013-01-23 14:31:01 +0900 (459bb26)
@@ -0,0 +1,13 @@
+doctype 5
+html(lang='ja')
+  head
+    meta(charset='UTF-8')
+    title= (title ? title + ' - ' : '') + 'Express Kotoumi Dashboard'
+    meta(name='viewport', content='width=device-width, initial-scale=1.0')
+    link(rel='stylesheet', href=prefix + '/styles/override.css', type='text/css', media='screen')
+    script(type='text/javascript', src=prefix + '/bootstrap/js/bootstrap.min.js')
+  body
+    .container
+      form.navbar-search.pull-left
+        div
+          input(type='text', class='search-query', placeholder='Search')
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index