nanoc
static site
compiler
fast
EXTREME
CACHING
safe
versionable
deploy
without worries
example
% nanoc create_site arrrrcamp
% cd arrrrcamp
% nanoc compile
pages
<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 ho...
layouts
  <body>
    <div id=quot;mainquot;>
<%= @page.content %>
    </div>
    <div id=quot;sidebarquot;>
      <h2>Documentatio...
page metadata
title:      quot;My Home Pagequot;
author:     quot;Denis Defreynequot;
created_on: 2009‐05‐08
filters
rdoc                bluecloth
        haml
                  rainpress
rubypants
                              erubis
    ...
My Home Page
============

Lorem ipsum…

* Foo
* Bar
* Baz
<h1>My Home Page</h1>

<p>Lorem ipsum…</p>

<ul>
  <li>Foo</li>
  <li>Bar</li>
  <li>Baz</li>
</ul>
class Rainpress < Nanoc::Filter

  identifier :rainpress

  def run(content)
    ::Rainpress.compress(content)
  end

end
helpers
<%= link_to(
  'A random page written by me'
  @pages.find { |p| p.author == 'Denis' }
) %>
demo
real sites
you can haz
questions?
nanoc.stoneship.org
  freenode #nanoc
 or google “nanoc”
Nanoc
Nanoc
Nanoc
Nanoc
Nanoc
Nanoc
Nanoc
Upcoming SlideShare
Loading in …5
×

Nanoc

1,375 views
1,323 views

Published on

Published in: Technology, Economy & Finance
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,375
On SlideShare
0
From Embeds
0
Number of Embeds
15
Actions
Shares
0
Downloads
9
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Nanoc

  1. 1. nanoc
  2. 2. static site compiler
  3. 3. fast
  4. 4. EXTREME CACHING
  5. 5. safe
  6. 6. versionable
  7. 7. deploy without worries
  8. 8. example
  9. 9. % nanoc create_site arrrrcamp
  10. 10. % cd arrrrcamp % nanoc compile
  11. 11. pages
  12. 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. 13. layouts
  14. 14.   <body>     <div id=quot;mainquot;> <%= @page.content %>     </div>     <div id=quot;sidebarquot;>       <h2>Documentation</h2>       <ul>         ...       </ul>       <h2>Community</h2>       <ul>         ...       </ul>     </div>   </body>
  15. 15. page metadata
  16. 16. title:      quot;My Home Pagequot; author:     quot;Denis Defreynequot; created_on: 2009‐05‐08
  17. 17. filters
  18. 18. rdoc bluecloth haml rainpress rubypants erubis filters rainpress redcloth erb sass maruku
  19. 19. My Home Page ============ Lorem ipsum… * Foo * Bar * Baz
  20. 20. <h1>My Home Page</h1> <p>Lorem ipsum…</p> <ul>   <li>Foo</li>   <li>Bar</li>   <li>Baz</li> </ul>
  21. 21. class Rainpress < Nanoc::Filter   identifier :rainpress   def run(content)     ::Rainpress.compress(content)   end end
  22. 22. helpers
  23. 23. <%= link_to(   'A random page written by me'   @pages.find { |p| p.author == 'Denis' } ) %>
  24. 24. demo
  25. 25. real sites
  26. 26. you can haz questions?
  27. 27. nanoc.stoneship.org freenode #nanoc or google “nanoc”

×