measure map tags for typo
1 2 # /app/views/articles/_article.rhtml 3 <script type="text/javascript"><!-- 4 if(!mmposts){var mmposts=[];}mmposts[mmposts.length]="<%= article.id %>"; 5 //--></script> 6 <!-- mmp mmid:<%= article.id %> mmdate:<%= article.created_at.to_s(:db) %> mmurl:<%=h article_url(article, true) %> mmtitle:<%=h article.title %> --> 7 8 # /app/views/articles/_comment.rhtml 9 <script type="text/javascript"><!-- 10 if(!mmcomments){var mmcomments=[];}mmcomments[mmcomments.length]="<%= comment.id %>"; 11 //--></script> 12 <!-- mmc mmid:<%= comment.id %> mmdate:<%= comment.created_at.to_s(:db) %> mmauthor:<%=h comment.author %> --> 13 14 # /app/views/articles/read.rhtml 15 # This is the same as the _article.rhtml snippet, but using the @article instance var instead of the article local var 16 <script type="text/javascript"><!-- 17 if(!mmposts){var mmposts=[];}mmposts[mmposts.length]="<%= @article.id %>"; 18 //--></script> 19 <!-- mmp mmid:<%= @article.id %> mmdate:<%= @article.created_at.to_s(:db) %> mmurl:<%=h article_url(@article, true) %> mmtitle:<%=h @article.title %> --> 20 </div>
There's also a javascript include to add to the bottom of your typo theme, but there's no customization required...