[Lift] Re: Template tags and properties

2009-07-22 Thread José María
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

[Lift] Re: Template tags and properties

2009-07-22 Thread José María
That's fine, I just want to generate paths in snippet code. On Jul 21, 10:20 am, marius d. marius.dan...@gmail.com wrote: Something like: a lift:snippet=Path.buildhi/a where path is thesnippetclass and build is the method name. But what is your use case? Br's, Marius On Jul 21, 12:11 

[Lift] Re: Template tags and properties

2009-07-22 Thread marius d.
Lift is not a MVC framework but a View First one. Snippets are the way to generate dynamic content that will be woven into the resulting markup. There is no design break in fact it is one of the most fundamental design goals of Lift. Snippets work with markup building blocks to generate the

[Lift] Re: Template tags and properties

2009-07-22 Thread José María
Solved: class MyObject { def url_image = new UnprefixedAttribute(src, http://localhost/ imgs/ + this.product.id+.jpg, null) } In the view (as marius said): img lift:snippet=MyObject:url_image/ Cheers. On Jul 21, 9:11 am, José María josemariar...@gmail.com wrote: Hi, I suppose that