Are you using vals mainly for the purpose of caching ?

I think it is ok to call findAnyTemplates (without using vals) as
templates are cached (in production mode)

Br's,
Marius

On Jan 9, 5:29 pm, greekscala <hellectro...@gmail.com> wrote:
> Hello everyone,
>
> I am surprised about the few code I have written and the effect I
> get :)
>
> I would like to know if this workflow can be optimized:
>
> I my snippet method I "findAnyTemplate()" my xml fragments and
> assigning them
> to vals.
>
> Then I have little functions that bind content with the above xml
> fragments and return
> the resulting NodeSeq, so I can do easy an SetHtml and return the new
> content with
> ajax.
>
> I find this way very easy. So I can have many little fragments, load
> them bind content
> and return them via ajax.
>
> Is it ok to load the fragments and save them in vals? Or can I do a
> findAnyTemplate()
> all the time? Or should I have snippets methods for this fragments and
> let lift do the
> snippet method calling?
>
> with best regards
-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to