Changeset 1226
- Timestamp:
- 01/09/08 10:04:41 (8 months ago)
- Files:
-
- trunk/lib/merb/mixins/inline_partial.rb (modified) (1 diff)
- trunk/lib/merb/mixins/render.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/merb/mixins/inline_partial.rb
r1208 r1226 7 7 8 8 found_template = @web_controller._cached_partials["#{template}.#{@_template_format}"] ||= 9 @web_controller.send(:find_partial, template )9 @web_controller.send(:find_partial, template, opts) 10 10 11 11 template_method = found_template.gsub(/[^\.a-zA-Z0-9]/, "__").gsub(/\./, "_") trunk/lib/merb/mixins/render.rb
r1206 r1226 422 422 # template_name.format.engine convention 423 423 def glob_template(path, opts = {}) 424 the_template = "#{path}.#{ @_template_format}"424 the_template = "#{path}.#{opts[:format] || @_template_format}" 425 425 Merb::AbstractController._template_path_cache[the_template] || (@_merb_unmatched = (the_template + ".*"); nil) 426 426 end
