Ticket #152 (closed defect: worksforme)

Opened 1 year ago

Last modified 1 year ago

Autoload by extension

Reported by: r.@tinyclouds.org Assigned to:
Priority: major Milestone: The Future
Component: Merb Keywords: haml templates autoload
Cc:

Description

Mailing list discussion

This patch makes Merb autoload template engines based on the filename extension. That is, if it encounters a .haml file, it will load Merb::Template::Haml

Attachments

autoload_by_extension.diff (6.8 kB) - added by r.@tinyclouds.org on 08/29/07 09:08:16.

Change History

08/29/07 09:08:16 changed by r.@tinyclouds.org

  • attachment autoload_by_extension.diff added.

08/29/07 14:39:30 changed by b.candl..@pobox.com

Need to remove the now-unnecessary bits from the sample examples/skeleton/conf/merb_init.rb

Otherwise +1

08/29/07 19:19:08 changed by e.@brainspl.at

  • status changed from new to closed.
  • resolution set to fixed.

(In [441]) check in changes to template autoloading so the right template engine will be lazy loaded if a template file with the right 3extensin is encountered, closes #152

09/27/07 11:08:56 changed by steve.shree..@gmail.com

  • status changed from closed to reopened.
  • resolution deleted.
  • priority changed from medium to major.
  • milestone changed from 0.4 to The Future.
  • keywords set to haml templates autoload.
  • type changed from enhancement to defect.

As of revision 693, HAML templates do not work out of the box. The message I see is: "undefined method capture_haml' for module Haml::Helpers'".

09/28/07 12:20:59 changed by r.@tinyclouds.org

waiting on #213

10/10/07 06:56:57 changed by r.@tinyclouds.org

  • status changed from reopened to closed.
  • resolution set to worksforme.

seems to be working now