Created
October 16, 2008 03:55
-
-
Save dcolthorp/17080 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # return an address in the adr microformat | |
| def format_address address | |
| expand_template(:haml, <<-END, :address => address) | |
| .adr | |
| .street-address= address.street_address | |
| %span.locality= address.city | |
| , | |
| %span.region= address.state | |
| %span.postal-code= address.zip | |
| END | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment