Search code examples
scalalift

Lift and CSS/Javascript


This is a complete newb question but I'm trying to run through the Lift-in-Action book by Tim Perrett. Maybe I'm wrong but does lift require a better understanding of CSS/Javascript than, say, Rails because of its View-first philosophy?

Or am I completely misunderstanding something. If so i'd appreciate an explanation of what I'm missing.


Solution

  • View first does not mean do the html/css pages first and then connect that to scala code. What it means is that one page can be divided into several logic components, called snippets in lift talk. This is in contrast to MVC frameworks, where the main idea is that one page has one main topic.

    You can find more details on this post