Skip to content

Commit

Permalink
fix indents in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLiu0235 committed Feb 12, 2018
1 parent fb0ce64 commit ac33e25
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 24 deletions.
12 changes: 6 additions & 6 deletions examples/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
<body>
<ul>
<% for (var i = 0, l = examples.length; i < l; i++) { %>
<li>
<a href="/<%= examples[i] %>">
<%= examples[i] %>
</a>
</li>
<% } %>
<li>
<a href="/<%= examples[i] %>">
<%= examples[i] %>
</a>
</li>
<% } %>
</ul>
</body>

Expand Down
41 changes: 24 additions & 17 deletions examples/routes/book-detail/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,30 @@

<body>
<div id="app">
<div>
<img alt="<%= alt_title %>" src="<%= image %>" />
<h3><a href="<%= alt %>"><%= title %></a></h3>
<p><%= summary %></p>
<p>信息:</p>
<ul>
<% for (var attr in attrs) { %>
<li><%= attrs[attr] %></li>
<% } %>
</ul>
<p>标签:</p>
<ol>
<% for (var i = 0; i < tags.length; i++) { %>
<li><%= tags[i].name %></li>
<% } %>
</ol>
</div>
<div>
<img alt="<%= alt_title %>"
src="<%= image %>" />
<h3><a href="<%= alt %>"><%= title %></a></h3>
<p>
<%= summary %>
</p>
<p>信息:</p>
<ul>
<% for (var attr in attrs) { %>
<li>
<%= attrs[attr] %>
</li>
<% } %>
</ul>
<p>标签:</p>
<ol>
<% for (var i = 0; i < tags.length; i++) { %>
<li>
<%= tags[i].name %>
</li>
<% } %>
</ol>
</div>
</div>
</body>

Expand Down
2 changes: 1 addition & 1 deletion examples/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

0 comments on commit ac33e25

Please sign in to comment.