nanoc
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

nanoc

on

  • 1,334 views

Presentation given at Arrrrcamp (2009-05-08).

Presentation given at Arrrrcamp (2009-05-08).

Statistics

Views

Total Views
1,334
Views on SlideShare
1,326
Embed Views
8

Actions

Likes
1
Downloads
2
Comments
0

3 Embeds 8

http://www.slideshare.net 3
http://www.slashdocs.com 3
http://www.slideee.com 2

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

nanoc Presentation Transcript

  • 1. nanoc
  • 2. static site compiler
  • 3. fast
  • 4. EXTREME CACHING
  • 5. safe
  • 6. versionable
  • 7. deploy without worries
  • 8. example
  • 9. % nanoc create_site arrrrcamp
  • 10. % cd arrrrcamp % nanoc compile
  • 11. pages
  • 12. <h1>A Brand New nanoc Site</h1> <p>You've just created a new nanoc site. The  page you are looking at right now is the home  page for your site (and it's probably the only  page).</p>
  • 13. layouts
  • 14.   <body>     <div id="main"> <%= @page.content %>     </div>     <div id="sidebar">       <h2>Documentation</h2>       <ul>         ...       </ul>       <h2>Community</h2>       <ul>         ...       </ul>     </div>   </body>
  • 15. page metadata
  • 16. title:      "My Home Page" author:     "Denis Defreyne" created_on: 2009‐05‐08
  • 17. filters
  • 18. rdoc bluecloth haml rainpress rubypants erubis filters rainpress redcloth erb maruku sass
  • 19. My Home Page ============ Lorem ipsum… * Foo * Bar * Baz
  • 20. <h1>My Home Page</h1> <p>Lorem ipsum…</p> <ul>   <li>Foo</li>   <li>Bar</li>   <li>Baz</li> </ul>
  • 21. class Rainpress < Nanoc::Filter   identifier :rainpress   def run(content)     ::Rainpress.compress(content)   end end
  • 22. helpers
  • 23. <%= link_to(   'A random page written by me'   @pages.find { |p| p.author == 'Denis' } ) %>
  • 24. demo
  • 25. real sites
  • 26. you can haz questions?
  • 27. nanoc.stoneship.org freenode #nanoc or google “nanoc”