Permalink
Browse files

Better slide counter

  • Loading branch information...
1 parent e5b73f1 commit 53c31bfd17fa86cabdf38a5bd32a949843a4e65b @dmfrancisco committed Aug 3, 2011
Showing with 6 additions and 3 deletions.
  1. +5 −2 src/master.html
  2. +1 −1 watch
View
@@ -21,8 +21,11 @@
<body>
<div id="content">
<div id="deck">
- <% 9.times do |i| %>
- <%= partial "slide#{i+1}.html" %>
+ <% no = 1 %>
+ <% loop do %>
+ <%= slide = partial "slide#{no}.html" %>
+ <% break if slide.empty? %>
+ <% no += 1 %>
<% end %>
</div>
</div>
View
@@ -88,7 +88,7 @@ module Builder
f.close
result = page.result
else
- puts "error : #{filename}"
+ # puts "error : #{filename}"
result = ""
end
result

0 comments on commit 53c31bf

Please sign in to comment.