lib/plate/helpers/partials_helper.rb in plate-0.7.0.pre2 vs lib/plate/helpers/partials_helper.rb in plate-0.7.0.pre3

- old
+ new

@@ -19,11 +19,12 @@ # Create a new partial with the given options, and return its content def render_partial(path, locals) partial_name = Partial.name(self.site, path, self.file) partial = Partial.find(self.site, partial_name) + self.page.partials << partial_name unless self.page.partials.include?(partial_name) + if partial - self.page.partials << partial unless self.page.partials.include?(partial) partial.pages << self.page unless partial.pages.include?(self.page) partial.render(locals) else nil end \ No newline at end of file