[racket] Web server templates
On Tue, Jun 5, 2012 at 9:38 PM, Jay McCarthy <jay.mccarthy at gmail.com> wrote:
> There's no "cache" that could be cleared.
>
> The template code is included verbatim in the module that uses
> include-template _AT COMPILE TIME_; you would need to recompile to get
> the changes, at the very least.
Jay, how convinced are you that this design is a good idea for the web
server? It makes the edit/compiled/debug cycle for web apps in Racket
significantly longer than in other languages that developers will
compare Racket with. Certainly, when I've developed Racket web apps,
I've wished that I didn't have to keep restarting the web server,
which I wouldn't in most other web frameworks.
There may be other considerations that I'm not thinking of here, though.
Sam
> On Tue, Jun 5, 2012 at 5:37 PM, Simon Haines <con.amalgamate at gmail.com> wrote:
>> On 5 June 2012 22:40, Jay McCarthy <jay.mccarthy at gmail.com> wrote:
>>
>>> This question is answered in the FAQ:
>>
>>
>> Thanks Jay, I read the faq before posting, but it didn't answer my question,
>> hence my post. I'm just going to assume you can't flush the template cache
>> except by restarting the server.
>> I guess I was hoping for a parameter that would detect changes to the
>> underlying template
>> (http://planet.racket-lang.org/display.ss?package=mzfam.plt&owner=jao) and
>> refresh the cache. This might be hard to implement on top of the existing
>> template implementation, as access to the cache is not exposed, instead
>> requiring changes to the module itself.
>> --
>> Simon.
>>
>>
>
>
>
> --
> Jay McCarthy <jay at cs.byu.edu>
> Assistant Professor / Brigham Young University
> http://faculty.cs.byu.edu/~jay
>
> "The glory of God is Intelligence" - D&C 93
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users
--
sam th
samth at ccs.neu.edu