Return-Path: Delivered-To: apmail-roller-user-archive@www.apache.org Received: (qmail 7673 invoked from network); 17 Oct 2007 00:42:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2007 00:42:18 -0000 Received: (qmail 89171 invoked by uid 500); 17 Oct 2007 00:42:05 -0000 Delivered-To: apmail-roller-user-archive@roller.apache.org Received: (qmail 89159 invoked by uid 500); 17 Oct 2007 00:42:05 -0000 Mailing-List: contact user-help@roller.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@roller.apache.org Delivered-To: mailing list user@roller.apache.org Received: (qmail 89150 invoked by uid 99); 17 Oct 2007 00:42:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 17:42:05 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [66.111.4.25] (HELO out1.smtp.messagingengine.com) (66.111.4.25) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2007 00:42:08 +0000 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id C549C30B49 for ; Tue, 16 Oct 2007 20:41:46 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 16 Oct 2007 20:41:46 -0400 X-Sasl-enc: VFo47uU+Xox1/H5Ddf3y9FBSYXvpyO3w5S8qd6/yltC5 1192581706 Received: from [192.168.11.2] (adsl-75-35-152-230.dsl.pltn13.sbcglobal.net [75.35.152.230]) by mail.messagingengine.com (Postfix) with ESMTP id 512EC230A4 for ; Tue, 16 Oct 2007 20:41:46 -0400 (EDT) Message-ID: <47155A55.4030509@onthefly.com> Date: Tue, 16 Oct 2007 17:41:57 -0700 From: Sam Neth User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: user@roller.apache.org Subject: Re: Velocity To Stop Caching Themes References: <1593824538.946681192573525981.JavaMail.root@mail-2.01.com> In-Reply-To: <1593824538.946681192573525981.JavaMail.root@mail-2.01.com> Content-Type: multipart/alternative; boundary="------------000300000408030601050505" X-Virus-Checked: Checked by ClamAV on apache.org --------------000300000408030601050505 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I'm not sure what the reasoning is behind the default templates embedding styles in the pages, but it greatly increases the page weight, and makes it more difficult to reuse styles from non-Roller pages, so I link to an external style sheet (I think you could also link to a style sheet uploaded to Roller). One benefit of this approach is that CSS iteration is very fast. As for template reloading, I ran into the same problem, which I think has to do not with velocity failing to reload templates but with Roller failing to rebuild pages. I ended up using an external editor and copy/pasting into the Roller template maintenance pages to apply changes. Only when things were stable did I save the templates off as a real theme. It's not ideal, but it's better than restarting the application. Dehru Cromer wrote: > Boy, I was hoping for a more iterative solution for all the UI (HTML/CSS) tweaks I need to make...to actually get velocity to read the changes. The default settings in velocity.properties is to check every 2 seconds for template changes, but that doesn't seem to be happening...it caches it at startup and never checks again. I'm wondering if anyone else has ran into this issue and solved it. > > Dehru > > > ----- Original Message ----- > From: "Raúl Fuenzalida" > To: user@roller.apache.org > Sent: Tuesday, October 16, 2007 3:18:26 PM (GMT-0700) America/Denver > Subject: Re: Velocity To Stop Caching Themes > > restart Roller? > > On 10/16/07, Dehru Cromer wrote: > >> Hello, >> >> I'm working with Roller 4.0 RC8 and creating a new theme. However, I have to start and stop Tomcat ( 6.0.14 ) in order to see theme changes in the templates. I've tried tweaking the velocity.properties to turn caching off in the various loaders and even tried to introduce the default FileResourceLoader, but no luck. It seems to be ignoring any changes I make. >> >> Any suggestions on how to resolve this would speed my theme development. >> >> Thanks, >> Dehru Cromer >> >> > > > --------------000300000408030601050505--