Re: Proposal for optional compilation and caching of Tilt templates

2010-05-09 Thread Philippe Monnet
I just made the changes and merged up to the main Camping branch: I am now setting the new :dynamic_templates option when you run the camping server (only). Magnus I did not rebuild the official gem yet. Maybe you could do that. On 5/8/2010 6:03 PM, Magnus Holm wrote: Thanks for testing it

Proposal for optional compilation and caching of Tilt templates

2010-05-08 Thread Philippe Monnet
I gave Magnus' excellent integration of Tilt a whirl today and really love it. It's also cool because you can match different types of templates at the same time (e.g. Markaby + HAML). I found that while prototyping it would be nice to not have Camping compile and cache Tilt templates. So I

Re: Proposal for optional compilation and caching of Tilt templates

2010-05-08 Thread Magnus Holm
Thanks for testing it out ;) I agree: we can't cache templates in development and you shouldn't need to set an option for that, however we also want Camping to be speedy out-of-box. What about applying your patch, but also make bin/camping set :dynamic_templates to true if it's not set already?