
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Helps with constructing meta tags
Add this line to your application's Gemfile:
gem 'html_meta'
And then execute:
$ bundle
Or install it yourself as:
$ gem install html_meta
In an initializer file set any configuration options:
HtmlMeta.configure do |config|
config.title_separator = ' | '
end
Set some defaults in an initializer file:
HtmlMeta.define do
meta :title, '21purple Web Studios'
meta :keywords, 'expressionengine developer development php custom web application'
meta :description, 'We are an awesome web development shop'
end
And then later in a controller action or where ever modify the meta tag values:
HtmlMeta.define do
meta :title, 'Ruby Development', prepend: true
meta :keywords, 'ruby rails padrino', append: true
meta :description, 'We are an awesome ruby web development shop'
open_graph :title, 'Ruby Developer'
end
You can also use the shorthand method og for setting open graph tags:
HtmlMeta.define do
og :title, 'Ruby Developer'
end
You can also set a single meta tag value:
HtmlMeta.meta :title, 'Rails Development', prepend: true
Or you can get a meta tag value:
HtmlMeta.meta :title
The open graph tags have similar setters:
HtmlMeta.open_graph :title, 'Rails Development', prepend: true
or
HtmlMeta.og :title, 'Rails Development', prepend: true
And getters:
HtmlMeta.open_graph :title
or
HtmlMeta.og :title
And then render the html for the meta tags:
HtmlMeta.render
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that html_meta 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
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.