![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A Middleman extension to generate VCards and useful helpers to work with.
Include the middleman-vcard
gem in your Gemfile:
gem 'middleman-vcard'
Add the following code to your config.rb
file:
require "middleman-vcard"
activate :vcard,
name: data.site.vcard.name,
emails: [{
email: data.site.vcard.email,
preferred: true,
location: "work"
}],
phones: [{
number: data.site.vcard.phone,
preferred: true,
location: "work",
capability: ["voice", "video", "msg"]
}],
addresses: [{
preferred: true,
location: "work",
postalcode: data.site.vcard.postalcode.to_s,
locality: data.site.vcard.city,
region: data.site.vcard.province,
country: data.site.vcard.country
}],
photo: {
path: File.join(root, config.source, config.images_dir, "logo-vcard.jpg"),
type: "jpeg"
}
Of course you can organize your data as you want and choose what to include in your data files or directly in your config file.
Also, you can pass multiple phones, addresses, emails.
Now the VCard file will be automatically generated :D
Usually you need to include your VCard in HTML, so there are some helpers already defined:
vcard_link
Generate a link tag that points to the VCard.
Details here.
vcard_path
Build the path that points to the VCard file.
Details here.
Many thanks to Luca Molari (LMolr)!!
$ gem install middleman-vcard
Copyright (c) 2015 Alessandro Molari
See LICENSE for details.
FAQs
Unknown package
We found that middleman-vcard 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.