Skip to content

Instantly share code, notes, and snippets.

@mnelson
Created October 5, 2011 20:37
Show Gist options
  • Save mnelson/1265630 to your computer and use it in GitHub Desktop.
Save mnelson/1265630 to your computer and use it in GitHub Desktop.
DynMeta demonstration
%title= meta(:title)
%meta{:name => 'robots', :content => meta(:robots)}
%meta{:name => 'description', :content => meta(:description)}
en:
meta:
<keyword-pluralized>:
default: value
<controller>:
default: value
<action>:
default: value
<id>: value
en:
meta:
titles:
default: My Amazing Website | Amazing
users:
default: Welcome to My Amazing Website | Amazing
new: Join My Amazing Website | Amazing
edit: Edit Your Account
en:
meta:
titles:
pages:
show:
tos: "Terms of Service"
pp: "Privacy Policy"
about: "About My Site"
- meta(:title, @user.name)
%h2= @user.name
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment