hyphenize_underscores

17 views
Skip to first unread message

Jim Kingdon

unread,
Jan 23, 2013, 6:34:15 PM1/23/13
to ere...@googlegroups.com
We discovered the hard way that it is kind of awkward to use erector
0.9.0 with twitter bootstrap (and probably various other CSS/javascript
things out there) because the usual convention is to use hyphens in
class names, but erector/ruby doesn't have a "div.foo-bar" syntax.

Therefore, I've added an option to erector to convert "div.foo_bar" to
the class name "foo-bar".

Details at https://github.com/pivotal/erector/pull/42

We can always change it if people have other suggestions, want to rename
it, whatever.

Reply all
Reply to author
Forward
0 new messages