Skip to content

benilovj/nanoc-tilt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages