Skip to content

Commit

Permalink
removed comma, was giving compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Saurabh Kumar committed Sep 13, 2012
1 parent 2e3b199 commit b11e3bc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions coffeescript/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ require "fileutils"

def generate(page, template = "site/page.ms")
Mustache.render(
File.read(template),
page.merge(:content => RDiscount.new(File.read(page[:src])).to_html),
File.read(template),
page.merge(:content => RDiscount.new(File.read(page[:src])).to_html)
)
end

Expand All @@ -20,25 +20,25 @@ task :generate do
})
array
end

pages.each do |page|
File.open(page[:static], "w+") do |f|
f.write generate(page)
end
end

File.open("index.html", "w+") do |f|
f.write(Mustache.render(
File.read("site/index.ms"),
File.read("site/index.ms"),
:pages => pages
))
end

File.open("all.html", "w+") do |f|
pages.each do |page|
f.write generate(page)
end
end
end

task :default => :generate
task :default => :generate

0 comments on commit b11e3bc

Please sign in to comment.