• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Nanoc
 

Nanoc

on

  • 1,480 views

 

Statistics

Views

Total Views
1,480
Views on SlideShare
1,473
Embed Views
7

Actions

Likes
2
Downloads
8
Comments
0

1 Embed 7

http://localhost 7

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 Nanoc Presentation Transcript

    • 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 home  page for your site (and it's probably the only  page).</p>
    • layouts
    •   <body>     <div id=quot;mainquot;> <%= @page.content %>     </div>     <div id=quot;sidebarquot;>       <h2>Documentation</h2>       <ul>         ...       </ul>       <h2>Community</h2>       <ul>         ...       </ul>     </div>   </body>
    • page metadata
    • title:      quot;My Home Pagequot; author:     quot;Denis Defreynequot; created_on: 2009‐05‐08
    • filters
    • rdoc bluecloth haml rainpress rubypants erubis filters rainpress redcloth erb sass maruku
    • 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”