Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A filter for the nanoc (https://github.com/ddfreyne/nanoc), a static page generator, that lets you render your files with tilt (https://github.com/rtomayko/tilt).
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
.rvmrc
Gemfile
Gemfile.lock
LICENSE.md
README.md
Rakefile
nanoc-tilt.gemspec

README.md

nanoc-tilt

Description

nanoc-tilt is a filter for nanoc, a static page generation framework, that lets you render your files with tilt.

The nanoc-tilt gem allows tilt to manage the rendering of your files. That way, you can just follow the conventions that Tilt enforces (e.g. .haml files will be rendered by the Haml engine, .sass by Sass, etc) and end up much simpler compile rules in the nanoc Rules file.

Requirements

  • nanoc3
  • tilt

Installation

To use the nanoc-tilt, you have to start by installing the gem.

gem install nanoc-tilt

Then require the project main file in your default.rb file in the lib directory of your nanoc project.

require "nanoc-tilt"

Usage

Here is a sample compile rule (in the Rules file) which uses nanoc-tilt:

compile '*' do
  unless item.binary?
    filter :tilt if Tilt.registered?(item[:extension])
    layout 'common' if item[:extension] == 'erb'
  end
end

Author

License

Copyright (c) 2011 Jake Benilov, nanoc-tilt is released under the MIT license. See the LICENSE.md file for details.

Something went wrong with that request. Please try again.