Joined April 2012
·
Posted to
Displaying comma separated values using CSS
over 1 year
ago
This is the case were have these list generated in Rails (from erbs) or Javascript mustaches templates.
Instead of handling the exceptions around the adding the commas and the "and", it just seems sort of cleaner to do it declaratively in CSS. These separators just seemed like a view concern so leave it to CSS. (Maybe it is a little bit of an abuse of CSS, not sure about that).
Achievements
165 Karma
18,608 Total ProTip Views
Forked
Have a project valued enough to be forked by someone else
Komodo Dragon
Have at least one original repo where Java is the dominant language
Charity
Fork and commit to someone's open source project in need
These articles were very good. The author had originally kept it free, but then now they have start requiring a subscription.