README.md in princely-2.0.2 vs README.md in princely-2.1.0
- old
+ new
@@ -18,10 +18,11 @@
:template => 'controller/action',
:handlers => %w[erb],
:formats => %w[pdf],
:stylesheets => %w[application prince],
:layout => 'pdf',
+ :locals => { :foo => 'bar' },
:disposition => 'inline', # PDF will be sent inline, means you can load it inside an iFrame or Embed
:relative_paths => true # Modify asset paths to make them relative. See [the AssetSupport module](/lib/princely/asset_support.rb)
end
end
end
@@ -38,10 +39,11 @@
The defaults for the render options are as follows:
layout: false
template: the template for the current controller/action
+ locals: none
stylesheets: none
disposition: attachment (created PDF file will be sent as download)
relative_paths: true
server_flag: true
javascript_flag: false
@@ -49,9 +51,10 @@
## Contributors
* Maintainer: Jared Fraser ([modsognir](https://github.com/modsognir))
* Gemification and more: Nic Williams
+* Based on code by: Seth B ([subimage](https://github.com/subimage))
* [Other Contributors](https://github.com/mbleigh/princely/contributors)
## Resources
* Copyright (c) 2007-2013 Michael Bleigh and Intridea, Inc., released under the MIT license.