• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
nanoc @ arrrrcamp (2009-05-08)
 

nanoc @ arrrrcamp (2009-05-08)

on

  • 770 views

A quick introduction to nanoc, given at arrrrcamp, may 2009.

A quick introduction to nanoc, given at arrrrcamp, may 2009.

Statistics

Views

Total Views
770
Views on SlideShare
767
Embed Views
3

Actions

Likes
0
Downloads
5
Comments
0

1 Embed 3

http://www.slideshare.net 3

Accessibility

Categories

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 @ arrrrcamp (2009-05-08) nanoc @ arrrrcamp (2009-05-08) 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="main"> <%= @page.content %>     </div>     <div id="sidebar">       <h2>Documentation</h2>       <ul>         ...       </ul>       <h2>Community</h2>       <ul>         ...       </ul>     </div>   </body>
    • page metadata
    • title:      "My Home Page" author:     "Denis Defreyne" created_on: 2009‐05‐08
    • filters
    • rdoc bluecloth haml rainpress rubypants erubis filters rainpress redcloth erb maruku sass
    • 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”