Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [38d78f99d52801d8392a7229b40edae74cc3d142] by José Valim

Revision 38d78f99d52801d8392a7229b40edae74cc3d142, committed by José Valim · October 10th, 2010 @ 08:26 AM

Resolvers now consider timestamps.

Before this patch, every request in development caused the template
to be compiled, regardless if it was updated in the filesystem or not.
This patch now checks the timestamp and only compiles it again if
any change was done.

While this probably won't show any difference for current setups,
but it will be useful for asset template handlers (like SASS), as
compiling their templates is slower than ERb, Haml, etc.
http://github.com/rails/rails/commit/38d78f99d52801d8392a7229b40eda...

4 changed files

  • M actionpack/lib/action_view/template.rb
  • M actionpack/lib/action_view/template/resolver.rb
  • M actionpack/lib/action_view/testing/resolvers.rb
  • M actionpack/test/template/lookup_context_test.rb