Other snippet naming conventions or options are:
- The model name is singular and the snippet name is plural
- The snippet class is name XXXOps (for operations?)
- Same name, but use a "partially qualified name." E.g.,
mypackage.snippet.Author can import mypackage.model and refer to model.Author
with no ambiguity
- Same name but import with an alias:
import mypackage.model.{Author => MAuthor}
- Combination: import model aliased as "m," then refer to "m.Author."
-------------------------------------
greekscala<[email protected]> wrote:
Hello,
I had the same problems too. There is a free book on Lift
http://groups.google.com/group/the-lift-book this should be
able to give you a good overview.
best regards
On 22 Jan., 07:37, The Trav <[email protected]> wrote:
> Ok, so I'm trying out the lift framework, went through the guide
> without too much trouble. Had a few points that threw me a bit.
>
> The biggest one is probably having a snippet named TD and a model
> named ToDo.
> It seems to me like it's trying to work around namespace collisions
> and/or potential confusion over namespaces, I think it would probably
> be a better idea to address that explicitly.
>
> What do people generally do for naming snippets? Is naming them after
> the Model the exception rather than the rule?
>
> Another thing that got me was that it didn't address adding new pages
> past index.html which strikes me as somewhat incomplete... After
> reading the getting started guide, I feel I'm going to have to find
> another document or two (or three) before I can do any meaningful work
> with the framework.
>
> Other than those two suggestions I found it a pretty good
> introduction, the framework is definitely pretty neat, and I like the
> mvn integration for getting started, very handy
--
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.
--
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.