
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
A small extension to the excellent jbuilder library that outputs JSONP using a specified callback.
Add this line to your application's Gemfile:
gem 'jpbuilder'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jpbuilder
Install in your gem file and then just create templates with the extension
.jpbuilder
and use the normal Jbuilder DSL. The template will use the
callback as specified in the "callback" url parameter. If none is provided then
the regular JSON format will be returned.
You can set a global callback to be used in the absence of a callback listed in
the params
hash, by setting the JPbuilderHandler.default_callback
variable
in an initializer:
# config/initializers/jpbuilder.rb
JPbuilderHandler.default_callback = "myJsCallback"
To disable the auto callback simply set JPbuilderHandler.default_callback
to
null
or ""
.
# config/initializers/jpbuilder.rb
JPbuilderHandler.default_callback = nil
Note: nil
is the default value.
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that jpbuilder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.