I tried to find some info about the correct usage of template related
tags on wiki but I couldn't find the most recent information about it.
I'm starting with Lift and I couldn't find all information that I want
on wiki pages, is there any chance to update the wiki with some info
about these renamed tags?

On 20 ago, 14:18, inca <[email protected]> wrote:
> The neat thing about the "insert" is that it is consistent with other
> templating frameworks (Tiles [http://struts.apache.org/1.x/struts-
> tiles/tlddoc/tiles/insert.html], Facelets [http://www.roseindia.net/
> jsf/insert.shtml], etc.), so it would be easy for folks like me to
> migrate to Lift. I don't think that "lift:bind-at" is a good
> replacement: it looks very similar to "lift:bind" when browsing the
> code (I've just tested this, not very eye-catching difference).
> And if you really like minimal typing, call it <lift:put at=""> (it is
> one letter smaller than <lift:at name="">) :) And yes, it's naming
> policy is still consistent with other tags (verbs as tag names and
> pronouns as attributes).
>
> About the built-in snippet aliases... I don't see anything wrong
> there. Just let them have custom xml prefixes, and it would be
> perfectly clear that it is an alias. I, personally, think that xml
> prefixes are great. Say I have a snippet like this:
>
> class HtmlUI {
>
>   def wrapper(in:NodeSeq):NodeSeq =
>     <div class="w">
>     <div class="e">
>     <div class="c">{in}
>     </div>
>     </div>
>     </div>
>
>   def button(in:NodeSeq):NodeSeq =
>     <a class="button"
>        style={"background:transparent url('/img/buttons/bkg-" + S.attr
> ("bkg").openOr("green") + ".png') no-repeat"}
>        title={S.attr("title").openOr("")}
>        href={S.attr("href").openOr("#")}>
>       <img src={"/img/buttons/" + S.attr("icon").openOr("") + ".png"}
> alt=""/>
>       <div class="gloss"/>
>     </a>
>
>    ...etc...
>
> }
>
> So every time I need a wrapper or a glossy button I would write
> <lift:HtmlUI.wrapper ...> or <lift:HtmlUI.button ...>.
> Now if I had a chance to create xhtml prefix alias for this snippet
> (something like that:
>   LiftRules.addSnippetMapping("ui" -> HtmlUI)
> ), than my xhtml templates would reduce a lot (<ui:wrapper ...> and
> <ui:button ...>) along with increased readability.

--~--~---------~--~----~------------~-------~--~----~
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