[plt-scheme] Re: S-exp Templating
You could load it in a fresh namespace and throw out the namespace.
This is exactly how /conf/refresh-servlets works.
Jay
On Fri, Jan 22, 2010 at 1:52 PM, Struys <kenstruys at gmail.com> wrote:
> I would prefer to not use shp (no particular reason).
>
> If I wanted to make it explicit that this should refresh on every
> request, like a MVC style where Views would always be refreshed, how
> could I do (load-view <template>)?
>
> >From what I know dynamic require will only load source once, and you
> can't force it to load again.
>
> I also thought about enter! but that didn't seem to do what i wanted.
>
> On Jan 22, 2:31 pm, YC <yinso.c... at gmail.com> wrote:
>> On Fri, Jan 22, 2010 at 10:50 AM, John Clements
>> <cleme... at brinckerhoff.org>wrote:
>>
>>
>>
>> > On Jan 22, 2010, at 10:21 AM, Grant Rettke wrote:
>>
>> > > On Wed, Jan 20, 2010 at 11:26 AM, Jay McCarthy <jay.mccar... at gmail.com>
>> > wrote:
>> > >> You could use some combination of eval or dynamic-require to get a new
>> > >> sexp. You could do that on every request, so that it would be
>> > >> updating.
>>
>> > > That sounds like a nifty feature during development time.
>>
>> > In my development process, that's what the "run" button does...no?
>>
>> Yes - if your web-server is started within DrScheme.
>>
>> For OP's original question - how to change xexpr without having to restart -
>> my bzlib/shp package is designed for this particular issue.
>>
>> Cheers,
>> yc
>>
>> _________________________________________________
>> For list-related administrative tasks:
>> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
--
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay
"The glory of God is Intelligence" - D&C 93