0.0
No commit activity in last 3 years
No release in over 3 years
Show a snippet of one nanoc item
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Snippet

Show a snippet of one item.

It use HTML-Truncator.

Install

gem install nanoc-snippet

If you use bundler, add it to your Gemfile:

gem "nanoc-snippet", "~> 0.0.2"

Usage

Add to lib/default.rb:

require 'nanoc-snippet'

include Nanoc::Helpers::Snippet

In your layout:

<%= snippet(item) %>

Some options are available. See the code to see all.

License

(c) 2012-2015 Stormz

This code is free to use under the terms of the MIT license