Skip to content

Instantly share code, notes, and snippets.

@navap
Created May 3, 2010 23:53
Show Gist options
  • Save navap/388754 to your computer and use it in GitHub Desktop.
Save navap/388754 to your computer and use it in GitHub Desktop.
<div>[%- '<strong>' _ edit.yes_votes _ '</strong> ' _ l('yes') _ ' : <strong>' _ edit.no_votes _ '</strong> ' _ l('no') -%]</div>
<div><strong>[%- edit.yes_votes -%]</strong>[%- l(' yes') -%] : <strong>[%- edit.no_votes -%]</strong>[%- l(' no') -%]</div>
@navap
Copy link
Author

navap commented May 16, 2010

I went with


[%- l('{yes} yes : {no} no',
{ yes => '' _ edit.yes_votes _ '',
no => '' _ edit.no_votes _ '' }) -%]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment