
Security News
ESLint Adds Support for Parallel Linting, Closing 10-Year-Old Feature Request
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Princely is a simple wrapper for the Prince XML PDF generation library (http://www.princexml.com). It is almost entirely based on the SubImage Prince library found on this blog post:
http://sublog.subimage.com/articles/2007/05/29/html-css-to-pdf-using-ruby-on-rails
I have taken the helpers and made them a little bit more generalized and reusable, and created a render option set for pdf generation. The plugin will also automatically register the PDF MimeType so that you can use pdf in controller respond_to blocks.
class Provider::EstimatesController < Provider::BaseController
def show
respond_to do |format|
format.html
format.pdf do
render :pdf => "file_name",
:template => "controller/action.pdf.erb",
:stylesheets => ["application","prince"]
:layout => "pdf"
end
end
end
def pdf
make_and_send_pdf("file_name")
end
end
The defaults for the render options are as follows:
layout: false
template: the template for the current controller/action
stylesheets: none
FAQs
Unknown package
We found that drnic-princely demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.