Permalink
Browse files

dead snippets post

  • Loading branch information...
1 parent f607088 commit 3828b883971f536917c5db775561e019c1c3d164 @jfahrenkrug committed Jan 29, 2013
Showing with 27 additions and 0 deletions.
  1. +15 −0 _posts/2013-01-29-find-unused-and-invalid-radiant-snippets.html
  2. +12 −0 tags.html
@@ -0,0 +1,15 @@
+---
+name: find-unused-and-invalid-radiant-snippets
+layout: post
+title: Find unused and invalid Radiant Snippets
+time: 2013-01-29 11:02:00.006000 Z
+categories:
+- Programming
+- Ruby
+- rails
+---
+<p>When using the Ruby on Rails based Radiant CMS system, you might find yourself wondering which snippets are unused or which non-existent snippets are referenced in a page, a layout or another snippet. I've created a small script that finds both unused as well as invalid snippets:<p>
+ <script src="http://gist.github.com/4664843.js"></script>
+<p>Just run it like so:</p>
+<p><code>bundle exec ./script/runner dead_snippets.rb</code></p>
+<p>Enjoy!</p>
View
@@ -514,6 +514,10 @@ <h3 id="Personal">Personal</h3>
</ul> <a name="Programming"></a>
<h3 id="Programming">Programming</h3>
<ul class="posts"> <li>
+ <div>29 Jan 2013</div>
+ <a href="/2013/01/find-unused-and-invalid-radiant-snippets.html">Find unused and invalid Radiant Snippets</a>
+ </li>
+ <li>
<div>29 Aug 2012</div>
<a href="/2012/08/ios-workshops-in-heidelberg-im-september.html">iOS Workshops in Heidelberg im September</a>
</li>
@@ -872,6 +876,10 @@ <h3 id="RailsConf">RailsConf</h3>
</ul> <a name="Ruby"></a>
<h3 id="Ruby">Ruby</h3>
<ul class="posts"> <li>
+ <div>29 Jan 2013</div>
+ <a href="/2013/01/find-unused-and-invalid-radiant-snippets.html">Find unused and invalid Radiant Snippets</a>
+ </li>
+ <li>
<div>03 May 2012</div>
<a href="/2012/05/ruby-motion-a-new-chapter-for-ios-development.html">Ruby Motion: A New Chapter for iOS Development</a>
</li>
@@ -1386,6 +1394,10 @@ <h3 id="php">php</h3>
</ul> <a name="rails"></a>
<h3 id="rails">rails</h3>
<ul class="posts"> <li>
+ <div>29 Jan 2013</div>
+ <a href="/2013/01/find-unused-and-invalid-radiant-snippets.html">Find unused and invalid Radiant Snippets</a>
+ </li>
+ <li>
<div>12 Jan 2010</div>
<a href="/2010/01/invalidate-single-urls-in.html">Invalidate Single URLs in Rack::Cache/Radiant::Cache</a>
</li>

0 comments on commit 3828b88

Please sign in to comment.