From 6a9fa9bbf38e9c771b9a45100a20a2db6e2b7550 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Tue, 22 Oct 2013 17:42:07 +0200 Subject: [PATCH] doc fixes --- README.mdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.mdown b/README.mdown index bf73559..ddaec0a 100644 --- a/README.mdown +++ b/README.mdown @@ -6,7 +6,7 @@ Integrates PDF generation into a Tilt flow This gem depends on PDFKit, which in turn requires `wkhtmltopdf`. It is recommended to use the statically compiled version of the latter, as it is built against a patched QT that supports more features. -## Usage as a Tilt +## Usage as a Tilt template Add `tilt-pdf` to your Gemfile. Also add any template engine you may optionally want, such as `less` or `slim`. @@ -26,7 +26,7 @@ require 'tilt-pdf' pdf = Tilt.new('foo.rpdf').render() ``` -## Rails integration +## Rails and ActionView integration Require `tilt/pdf/rails` if you want to set up and register `tilt-pdf` as an ActionView template handler. You can do it in an initializer, or straight from the Gemfile: