Skip to content

Commit 4bc25da

Browse files
authored
Merge pull request #4 from rinja-rs/pr-sailfish-09
Update to sailfish 0.9.0
2 parents eed0e86 + 69d2dec commit 4bc25da

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tmpls/sailfish/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ license = "Apache-2.0"
88
[dependencies]
99
tmpls = { version = "*", path = ".." }
1010

11-
sailfish = "0.8.3"
11+
sailfish = "0.9.0"

tmpls/sailfish/templates/big-table.stpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<table>
2-
<% for row in &input.table { %>
2+
<% for row in &self.input.table { %>
33
<tr>
44
<% for col in row { %>
55
<td><%= col %></td>

tmpls/sailfish/templates/teams.stpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<html>
22
<head>
3-
<title><%= input.year %></title>
3+
<title><%= self.input.year %></title>
44
</head>
55
<body>
6-
<h1>CSL <%= input.year %></h1>
6+
<h1>CSL <%= self.input.year %></h1>
77
<ul>
8-
<% for (idx, team) in input.teams.iter().enumerate() { %>
8+
<% for (idx, team) in self.input.teams.iter().enumerate() { %>
99
<li class="<% if idx == 0 { %>champion<% } %>">
1010
<b><%= team.name %></b>: <%= team.score %>
1111
</li>

0 commit comments

Comments
 (0)