What are you using to compile the code in the first place? Haml doesn't
handle caching or recompiling on its own; that's done by a framework. That
framework should also provide you with some means of including other Haml
files so you don't have to do it manually.

On Thu, Sep 30, 2010 at 7:42 AM, the cliff <[email protected]> wrote:

> Hi there. I found this code off the net to allow haml includes:
>
> = ::Haml::Engine.new(File.read(File.dirname(__FILE__) + '/pathto/
> file.haml'), instance_variable_get(:@haml_buffer).options).render
>
> However it's always cached - it doesn't detect changes in my include
> file unless I change the include code then change it back again - any
> ideas?
>
> Thanks,
>
> Caroline
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to