From ac33e253ae46f98cb5625280bcd31dd003a1a690 Mon Sep 17 00:00:00 2001 From: stop2stare Date: Mon, 12 Feb 2018 16:27:41 +0800 Subject: [PATCH] fix indents in examples --- examples/index.tpl | 12 ++++---- examples/routes/book-detail/index.tpl | 41 ++++++++++++++++----------- examples/server.js | 2 +- 3 files changed, 31 insertions(+), 24 deletions(-) diff --git a/examples/index.tpl b/examples/index.tpl index 8134d9d..fb98992 100644 --- a/examples/index.tpl +++ b/examples/index.tpl @@ -9,12 +9,12 @@ diff --git a/examples/routes/book-detail/index.tpl b/examples/routes/book-detail/index.tpl index 3ceeeb8..bf51ea4 100644 --- a/examples/routes/book-detail/index.tpl +++ b/examples/routes/book-detail/index.tpl @@ -8,23 +8,30 @@
-
- <%= alt_title %> -

<%= title %>

-

<%= summary %>

-

信息:

-
    - <% for (var attr in attrs) { %> -
  • <%= attrs[attr] %>
  • - <% } %> -
-

标签:

-
    - <% for (var i = 0; i < tags.length; i++) { %> -
  1. <%= tags[i].name %>
  2. - <% } %> -
-
+
+ <%= alt_title %> +

<%= title %>

+

+ <%= summary %> +

+

信息:

+
    + <% for (var attr in attrs) { %> +
  • + <%= attrs[attr] %> +
  • + <% } %> +
+

标签:

+
    + <% for (var i = 0; i < tags.length; i++) { %> +
  1. + <%= tags[i].name %> +
  2. + <% } %> +
+
diff --git a/examples/server.js b/examples/server.js index 11ded6a..2d7e33a 100644 --- a/examples/server.js +++ b/examples/server.js @@ -63,6 +63,6 @@ app.use(function(req, res) { }) app.listen(port, function() { - console.log('🌏connect runs at http://localhost:', port) + console.log('🌏connect runs at http://localhost:' + port) opn('http://localhost:' + port) })