|
|
A set of filters to provide CSS typographical hooks to Rails views (RHTML) or Mephisto template (Liquid). It's basically a Ruby port of the Typogrify template filters for Django.
I don't know much about Typography, but I do know that curly quotes look better than straight ones, that HTML entities look better than plain-text, and that Django users shouldn't have all the fun.
See an Example of Typography Helper in action.
Included filters:
- Widon't (widont)
- RubyPants (rubypants)
- Initial quotes wrapped in class='dquo' or class='quo' depending on if they are single or double (initial_quotes)
- Ampersands wrapped in class='amp' (amp)
- Multiple adjacent capital letters wrapped in class='caps' (caps)
- A do-all filter (rubyshirt)
- A do-all filter (rubyoutfit aliased as t to keep views cleaner) that runs rubypants and rubyshirt (in that order)
- A combination rubyoutfit and h filter to perform typography filters and the h method together (th)
NOTES:
- Formerly the Rails version was hosted at http://typography-helper.googlecode.com/svn/trunk/. I have moved it to http://typography-helper.googlecode.com/svn/typography_helper/ because there are two versions now. Sorry for any inconvenience!
To get it, navigate to your Rails/Mephisto root directory
Rails: script/plugin install http://typography-helper.googlecode.com/svn/typography_helper
Mephisto: script/plugin install http://typography-helper.googlecode.com/svn/mephisto_typography_helper
