Skip to content

Instantly share code, notes, and snippets.

@kana
Created May 17, 2012 10:28
Show Gist options
  • Save kana/2718018 to your computer and use it in GitHub Desktop.
Save kana/2718018 to your computer and use it in GitHub Desktop.
Haml復習中
- def as_home; {href: '#home', data: {role: 'button', icon: 'home'}}; end
- def as_plus; {href: '#plus', data: {role: 'button', icon: 'plus'}}; end
- def as_here; {data: {theme: 'b'}}; end
%div{data: {role: 'footer', id: 'the-footer', position: 'fixed'}}
%div(data-role='navbar')
%ul
%li
%a{as_home} Home
%li
%a{as_plus, as_here} Plus
%div(data-role='footer' data-id='the-footer' data-position='fixed')
%div(data-role='navbar')
%ul
%li
%a(href='#home' data-role='button' data-icon='home') Home
%li
%a(href='#plus' data-role='button' data-icon='plus') Plus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment