How do folks normally do this? I can hand my designer a copy of the
webapp/templates-hidden/default.html file and associated
stylesheets/javascript, but I'm wondering if that is the best approach?
My concern is that he'd then need the full app running on his system to
see any changes, which seems prohibitive.
Another idea would be letting him start from scratch, then inserting the
various data-lift attributes where appropriate.
My other concern is with wizard-all.html. The version on the wiki is a
partial fragment and uses namespaced attributes. This doesn't seem
particularly designer-friendly. Is there a more designer-friendly way to
define wizard-all.html? I've gone through and used data-lift where
appropriate, but this can't be done everywhere.
Thanks.
First, congrats on your serious Lift project!
See comments below:
On Tue, Jan 24, 2012 at 12:36 PM, Nolan Darilek <no...@thewordnerd.info> wrote:
> I'm working on my first serious Lift app that will be deployed to
> production. As such, it's my first time working with a designer.
>
> How do folks normally do this? I can hand my designer a copy of the
> webapp/templates-hidden/default.html file and associated
There is an example on the simply lift book of a chat app, and as a
side effect it shows how to deal with a designer:
http://stable.simply.liftweb.net/#toc-Chapter-2
the html is this:
https://gist.github.com/1671418
On that page you see the index.html, notice how it included the
"header/surrounding " html, this allows your designer to open the page
in Firefox (straight from File -> Open) and he/she will see how the
page would look even running inside lift.
Notice how there are a few lines with the class "clearable" . All you
need to do on your render method in Lift is add :
def render = "li *" #> msgs & ClearClearable
(the ClearClreable is the key here). It basically tells Lift to delete
those lines while processing the page. So, your designer can see how a
list would look, and on your real app, running in jetty/tomcat/etc
will show you the "real" data.
The one drawback is keeping the "header section" in sync across all
your pages and the one real default.html.
Hope this gives you some direction.
Disclaimer, I haven't actually worked with a designer, but this is how
I work with myself, while working on the html, I just open the page in
Chrome, so I can make changes and I don't have to wait for jetty to
reload the page.
Regards,
Diego
> stylesheets/javascript, but I'm wondering if that is the best approach? My
> concern is that he'd then need the full app running on his system to see any
> changes, which seems prohibitive.
>
> Another idea would be letting him start from scratch, then inserting the
> various data-lift attributes where appropriate.
>
> My other concern is with wizard-all.html. The version on the wiki is a
> partial fragment and uses namespaced attributes. This doesn't seem
> particularly designer-friendly. Is there a more designer-friendly way to
> define wizard-all.html? I've gone through and used data-lift where
> appropriate, but this can't be done everywhere.
>
> Thanks.
>
> --
> Lift, the simply functional web framework: http://liftweb.net
> Code: http://github.com/lift
> Discussion: http://groups.google.com/group/liftweb
> Stuck? Help us help you:
> https://www.assembla.com/wiki/show/liftweb/Posting_example_code
--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://www.fmpwizard.com
I agree that this is an important aspect of using Lift that will
benefit greatly from "looking over your shoulder" as you evolve
collaborative practices.
Jack
In my opinion this is the best way to be designer-friendly because it
keeps styling information and content separate (other than with using
style="lift:BlogPost").
>>> def render = "li *" #> msgs& ClearClearable
+1, that's a really cool idea. One little change I might make is to go with something less generic than data-name though. The use of these data-* attributes seems to be picking up steam and I'd hate to see a collision with some UI feature. Maybe data-lift-id?
Hmm... so would the corresponding selectors look something like:"$whatever *" #> bla bla bla"$id=whatever *" #> bla bla blaReplacing $ with whatever character seems most appropriate (but data = money - makes sense to me :)). In other words, it's just a shorthand for matching arbitrary data attributes?
I would also prefer something like data-id="whatever" but maybe name it data-lift-id to avoid name clashes.
And then the css sel could be "$whatever". The $ seems nice (jquery also uses it for element selection)
-- Andreas Joseph Krogh <and...@officenet.no> - mob: +47 909 56 963 Senior Software Developer / CTO - OfficeNet AS - http://www.officenet.no Public key: http://home.officenet.no/~andreak/public_key.asc
Don't let him near the code. Get him to give you annotated, sliced
photoshop files, with documentation about stuff like relative proportions of
components, color and font properties. AKA. A design brief.
He should have already produced this stuff for your client (brand and interaction
design specs, color swatches, icons, background images).
If you leave him to dick about with your code, kludge is guaranteed.
If you've got the luxury of a front end developer, get him to merge it
into your existing system.
Don't ever let a designer who doesn't understand HTML etc mess about
with code, it just causes frustration for all concerned.
Regards,
Bryan Hunt