Guest User

Untitled

a guest
Apr 20th, 2014
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. preprocess do
  2. # populate code snipppets from _factory/lib
  3. code_snippets = Dir[File.join(File.dirname(__FILE__), 'lib/**/*.rb')].sort.map do |filename|
  4. Nanoc::CodeSnippet.new(
  5. File.read(filename),
  6. filename
  7. )
  8. end
  9. @site.code_snippets << code_snippets
Advertisement
Add Comment
Please, Sign In to add comment