On Feb 11, 2013, at 11:16 PM, RavenManiac wrote:
Yes, I noticed that. I just opened an old and new web page in Text Wrangler and it was a bit messy in 5.5, so I will admit that FWP 6 writes much cleaner code.
So, does this mean that anytime I design a FWP 6 website with External Stylesheets selected I can expect a css Stylesheet for every page in the site,
Yes. I hope this changes, but as things stand, it is the compromise that Softpress have settled on for now.
and is that standard coding practice these days?
What is standard depends on where you look. In Ruby on Rails-world, where I work most days, the standard is to write lots of little CSS files, probably just as many as you see in Freeway, but then to use a concatenation system to mux them together into one disambiguated sheet. This is done automatically using SASS or LESS, which are extensions of CSS to give it more programmatic smarts. If Freeway were to do this, you might see some redemption in terms of geek cred, but the minified CSS that a concatenator would write is not really meant for human eyes.
In a hand-coded site, you would probably see a lot more complexity arising from a combination of relatively simple rules. You might set up a style for the main content area on a page, then apply a classname to it to make it smaller when you need to slip another element up next to it. So instead of having #page1 #item1 and #page2 #item 2, as in my earlier example, you might have #main and .three-column, and each one would only be a partial style definition. When you applied .three-column to #main, you would get a third thing, which would be the combination of those rules.
This is the sort of thing that is very easy to hand-code, but very difficult to automatically generate. It relies on understanding the differences and similarities between items, and the simplest way to express those through combinations of styles.
Doing this in Freeway would probably require a multiple-pass system of first writing out all of the styles long-hand, then looking through them for similarities and factoring out the common stuff. As with any algorithmic product, it might not make the same sort of elegant sense that a well-factored set of hand-written CSS might. It would definitely work, though.
Walter
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options