Skip to content

Commit

Permalink
Fixed problem w/ partial rendering layouts every time
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneid committed Jul 26, 2008
1 parent 85c5641 commit 97eb700
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions irclogger.rb
Expand Up @@ -28,6 +28,7 @@ def info?

def partial(template, *args)
options = args.extract_options!
options.merge!(:layout => false)
if collection = options.delete(:collection) then
collection.inject([]) do |buffer, member|
buffer << erb(template, options.merge(:layout =>
Expand Down
6 changes: 6 additions & 0 deletions vendor/sinatra/.gitignore
@@ -0,0 +1,6 @@
doc
pkg
*.log
.DS_Store
Manifest
x.rb
3 changes: 3 additions & 0 deletions vendor/sinatra/.gitmodules
@@ -0,0 +1,3 @@
[submodule "vendor/rack"]
path = vendor/rack
url = git://github.com/chneukirchen/rack-mirror.git

0 comments on commit 97eb700

Please sign in to comment.