robbyrussell / year_after_year
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
Josh Goebel (author)
Sun May 18 05:05:59 -0700 2008
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | Sun May 18 05:05:59 -0700 2008 | |
| |
init.rb | ||
| |
lib/ | Sun May 18 05:05:59 -0700 2008 | |
| |
spec/ | Sun May 18 05:05:59 -0700 2008 |
README
YearAfterYear ============== This plugin allows you to keep your copyright year up-to-date. Example ======= You can render the current year in your ERb views like so: <%= current_year -%> If you want to provide a year range, you can use year_range and provide the year that you started. Example: With the assumption that the current year was 2008 <%= current_year_range(2005) -%> # => 2005-2008 <%= current_year_range(2005, '—') -%> # => 2005—2008 <%= current_year_range(2008) -%> # => 2008 (just returns current year) You can access the code here: * http://github.com/robbyrussell/year_after_year/ Feature Requests / Bugs * http://planetargon.lighthouseapp.com/projects/5187-open-source-projects Copyright (c) 2008 Robby Russell, released under the MIT license

