Created
October 20, 2010 12:29
-
-
Save simonwhitaker/636326 to your computer and use it in GitHub Desktop.
RHTML snippet showing use of nanoc to construct config-driven website for Goo Software Ltd
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
| <% for app in @item[:apps]%> | |
| <div class="app" id="<%= app[:name].downcase.gsub(' ','-') %>"> | |
| <h2> | |
| <a href="<%= app[:itunes_link] %>"><%= app[:name] %></a> | |
| <span class="appslogan"><%= app[:slogan]%></span> | |
| </h2> | |
| <a href="<%= app[:itunes_link] %>"><img src="<%= app[:image] %>" class="screenshot" alt="app screenshot" border="0"></a> | |
| <div class="description"> | |
| <% for desc in app[:description]%> | |
| <p><%= desc %></p> | |
| <% end %> | |
| <div class="appstore-badge"> | |
| <a href="<%= app[:itunes_link] %>"><img src="/images/app-store-badge-clipped.png" alt="App Store Badge Clipped" border="0"></a> | |
| </div> | |
| <% if app[:client] %> | |
| <div class="detail">Client: <%= app[:client] %></div> | |
| <% end %> | |
| <% if app[:platform] %> | |
| <div class="detail">Platform: <%= app[:platform] %></div> | |
| <% end %> | |
| </div> | |
| <div class="app-end"></div> | |
| </div> | |
| <% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment