Release Notes

2.1

  • New features
    • Asset compilation
    • Multiple representations
    • Routers
    • A better commandline frontend
    • New filters: discount, maruku, erubis
    • Greatly improved source code documentation
    • A new “filesystem_combined” data source
    • Page and layout mtimes can now be retrieved through page.mtime or layout.mtime
  • Changed
    • Layout processors have been merged into filters
    • Layouts no longer rely on file extensions
    • Already compiled pages won’t be recompiled unless changed
  • Removed
    • Several filters have been replaced by newer ones

For details on the large number of changes in nanoc 2.1, please check the articles in the What’s New in nanoc 2.1 series on the blog.

2.0.4

  • Fixed default.rb’s html_escape
  • Updated Haml filter and layout processor so that @page, @pages and @config are now available as instance variables as well as local variables

2.0.3

  • Autocompiler now honors custom paths
  • Autocompiler now serves files with the correct MIME type

2.0.2

  • nanoc now requires Ruby 1.8.5 instead of 1.8.6

2.0.1

  • Fixed a “too many open files” error that could appear during (auto)compiling

2.0

  • New features
    • Support for custom layout processors
    • Support for custom data sources, as well as a database data source
    • Auto-compiler
    • parent and children links for pages
  • Changed
    • Filters are defined in a different way now
    • The ‘eruby’ filter now uses ERB instead of Erubis
    • The source code for nanoc 2.0 has been restructured a great deal
    • Templates are no longer run through ERB when creating a page
  • Removed
    • The filters property—use filters_pre instead
    • Support for Liquid

For details on the changes in nanoc 2.0, please check the blog for details.

1.6.2

  • Fixed an issue which prevented the content capturing plugin from working

1.6.1

  • Removed a stray debug message

1.6

  • Added support for post-layout filters
  • Added support for getting a File object for a page, e.g. @page.file.mtime
  • Cleaned up the source code a lot
  • Removed deprecated asset-copying functionality

1.5

  • Added support for custom filters
  • Improved Liquid support—Liquid is now a first-class nanoc citizen
  • Deprecated assets—use something like rsync instead
  • Added eruby_engine option, which can be erb (default) or erubis

1.4

  • nanoc now supports ERB (as well as Erubis); Erubis no longer is a dependency
  • meta.yaml can now have haml_options property, which is passed to Haml
  • Pages can now have a filename property, which defaults to “index” [Dennis Sutch]
  • Page dependencies are now managed automatically [Dennis Sutch]

You can safely remove all order properties from all meta files, since nanoc now figures page dependencies automatically.

1.3.1

  • The contents of the assets directory are now copied into the output directory specified in config.yaml.

1.3

  • The @pages array now also contains uncompiled pages
  • Pages with skip_output set to true will not be outputted
  • Added Textile/RedCloth and Sass filters
  • nanoc now warns before overwriting in create_site, create_page and create_template

1.2

  • Sites now have an assets directory, whose contents are copied to the output directory [Soryu]
  • Added support for non-eRuby layouts (Markaby, Haml, Liquid)
  • Added more filters (Markaby, Haml, Liquid, RDoc [Dmitry Bilunov])
  • Improved error reporting
  • Accessing page attributes using instance variables, and not through @page, is no longer possible
  • Page attributes can now be accessed using dot notation, i.e. @page.title as well as @page[:title]

1.1.3

  • Fixed bug which would cause pages without layouts to be outputed incorrectly

1.1.2

  • Backup files (files ending with a “~”) are now ignored
  • Fixed bug which would cause subpages not to be generated correctly

1.1

  • Added support for nested layouts
  • Added coloured logging
  • @page now hold the page that is currently being processed
  • Index files are now called “content” files and are now named after the directory they are in [Colin Barrett]
  • It is now possible to access @page in the page’s content file

1.0.1

  • Fixed a bug which would cause an erroneous “no such template” error to be displayed
  • Fixed bug which would cause pages not to be sorted by order before compiling

1.0

  • Initial release