Doesn't this put "view code" (XML/Xhtml) in controller code? I've read
many times
in Lift doc about not puting logic in view but the reverse can be
even
worst, doing impossible to have a separate design. You can't broke
logic but
design.



On Jul 21, 10:19 am, Timothy Perrett <[email protected]> wrote:
> José,
>
> You'll need to do this from yoursnippetcode - we dont have any view
> logic in templates at all as that breaks lift view first model.
>
> For example:
>
> class YouSnippet {
>   def example: NodeSeq = <a>Hi</a> % "href" -> "/mypath/" +
> someDynamicVar
>
> }
>
> In your template:
>
> <lift:your_snippet.example />
>
> Does that make sense?
>
> Cheers, Tim
>
> On Jul 21, 10:11 am, José María <[email protected]> wrote:
>
> > Hi,
>
> > I suppose that this is something simple, how can I put a value inside
> > a property in a template?
>
> > Something like:
>
> > <a href="/mypath/<myobject:id></myobject:id>">hi</a>
>
> > Thanks.
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to